# Missing error on variable declaration

**URL:** https://forum.dynare.org/t/missing-error-on-variable-declaration/13099
**Category:** Stochastic simulations
**Created:** [15 January 2019 14:59 UTC](https://forum.dynare.org/t/missing-error-on-variable-declaration/13099 "2019-01-15T14:59:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![st348](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@st348](https://forum.dynare.org/u/st348)
#### Post date: [15 January 2019 14:59 UTC](https://forum.dynare.org/t/missing-error-on-variable-declaration/13099/1 "2019-01-15T14:59:53Z")

</div>

Dear all,

In my model I had accidentally a variable which was getting as a value the steady state of an exogenous variable.  
Of course this does not make any sense, but because I was trying various things in the model it happened.

Dynare does not give the particular error, it couldn’t even run the model. So it took my hours to understand what is going on.  
Dynare was saying:

`VariableNode::writeOutput: should not reach this point`

Just as an idea I think it would be useful if you include it in the error messages.

Best,  
Stelios

---

<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: [18 January 2019 05:57 UTC](https://forum.dynare.org/t/missing-error-on-variable-declaration/13099/2 "2019-01-18T05:57:48Z")

</div>

Thanks for reporting this. Could you please provide me with the mod-file to replicate the error.
