# \[AMPL 24797\] syntax error

**URL:** <https://discuss.ampl.com/t/ampl-24797-syntax-error/739>\
**Category:** Google Group Mirror\
**Created:** [September 22, 2023, 1:38am UTC](https://discuss.ampl.com/t/ampl-24797-syntax-error/739 "2023-09-22T01:38:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mifthahul\_Janna\_Rosy](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/mifthahul_janna_rosy/32/441_2.png) [@Mifthahul\_Janna\_Rosy](https://discuss.ampl.com/u/Mifthahul_Janna_Rosy)\
**Post date:** [September 22, 2023, 1:38am UTC](https://discuss.ampl.com/t/ampl-24797-syntax-error/739/1 "2023-09-22T01:38:56Z")

</div>

Hi, i want to ask about my problem. Why this is happened? Is there anything wrong with my Ampl software? Because, when I start to run my model it comes up: ![Screenshot 2023-09-22 093814.jpg](https://us1.discourse-cdn.com/flex019/uploads/ampl/original/1X/7a2bd81a3fd47c06d2133d64c7f3ab3c3633f969.jpeg)

---

<div class="post-metadata">

**Author:** ![AMPL\_Google\_Group](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@AMPL\_Google\_Group](https://discuss.ampl.com/u/AMPL_Google_Group)\
**Post date:** [September 22, 2023, 5:37pm UTC](https://discuss.ampl.com/t/ampl-24797-syntax-error/739/2 "2023-09-22T17:37:57Z")

</div>

We see this kind of error when there is an incorrect AMPL statement at the end of the model file, and the file does not have a semicolon (😉 character at the end. So, check the end of your model file. If you need more help, reply with the file WEEK7.mod attached, or with the contents of the file copied into your message.
