# Error is always reported when code is running

**URL:** <https://forum.dynare.org/t/error-is-always-reported-when-code-is-running/22002>\
**Category:** General DSGE Modeling\
**Created:** [24 February 2023 11:22 UTC](https://forum.dynare.org/t/error-is-always-reported-when-code-is-running/22002 "2023-02-24T11:22:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaifang](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/7c8e57/32.png) [@kaifang](https://forum.dynare.org/u/kaifang)\
**Post date:** [24 February 2023 11:22 UTC](https://forum.dynare.org/t/error-is-always-reported-when-code-is-running/22002/1 "2023-02-24T11:22:29Z")

</div>

Dear friends in the forum, can you help me see what’s wrong with my code? I have tried many times, but I can’t run the results. I also checked the code carefully, but I couldn’t find the cause of the error. I hope that some kind person can help me see what problems exist in the code. Thank you very much.  
[kaifang.mod](https://forum.dynare.org/uploads/short-url/qRzzUuY7PjNbbW20TScpk8Z21eV.mod) (6.9 KB)

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [24 February 2023 14:11 UTC](https://forum.dynare.org/t/error-is-always-reported-when-code-is-running/22002/2 "2023-02-24T14:11:56Z")

</div>

Please do not cross-post. See

> [@The code runs without results](https://forum.dynare.org/t/the-code-runs-without-results/22001/2):
>
> You are missing semi-colons at the end of multiple lines. You are using some variables (such as p\_f and p\_h) in equations which you haven’t declared as variables.
