# Terminate called after throwing an instance of 'SymbolTable::UnknownSymbolNameException'

**URL:** <https://forum.dynare.org/t/terminate-called-after-throwing-an-instance-of-symboltable-unknownsymbolnameexception/16952>\
**Category:** Installation and Setup\
**Created:** [18 November 2020 07:22 UTC](https://forum.dynare.org/t/terminate-called-after-throwing-an-instance-of-symboltable-unknownsymbolnameexception/16952 "2020-11-18T07:22:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rong\_huang](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/c68b51/32.png) [@rong\_huang](https://forum.dynare.org/u/rong_huang)\
**Post date:** [18 November 2020 07:22 UTC](https://forum.dynare.org/t/terminate-called-after-throwing-an-instance-of-symboltable-unknownsymbolnameexception/16952/1 "2020-11-18T07:22:57Z")

</div>

[JP2010\_lin3.mod](https://forum.dynare.org/uploads/short-url/x6LjontUUkH5IIPX3FXX1dCCTmA.mod) (3.0 KB)

This is my mod file for question 1 in the following exercise.[Quant\_project\_ECON6008\_Sem2\_2020 (1).pdf](https://forum.dynare.org/uploads/short-url/mC88bsmgt6v9NjtneSsEo9acotC.pdf) (89.5 KB)

But when I run the mod file. It turns out the following sentences:

Using 64-bit preprocessor  
Starting Dynare (version 4.6.2).  
Calling Dynare with arguments: none  
“/Applications/Dynare/4.6.2/matlab/preprocessor64/dynare\_m” JP2010\_lin3.mod mexext=mexmaci64 “matlabroot=/Applications/MATLAB\_R2018a.app”: Aborted  
Starting preprocessing of the model file …  
terminate called after throwing an instance of ‘SymbolTable::UnknownSymbolNameException’

miss-use dynare (line 282)  
Dynare: preprocessing failed

I can not find related info through google. Does anybody have the same bug like me? How did you solve this problem? Thank you.

---

<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 November 2020 08:16 UTC](https://forum.dynare.org/t/terminate-called-after-throwing-an-instance-of-symboltable-unknownsymbolnameexception/16952/2 "2020-11-18T08:16:21Z")

</div>

How did you install Dynare on your Mac? Using the package at [Download | Dynare](https://www.dynare.org/download/) ?  
Also note that `*` is not the proper way to comment in Dynare and that Dynare is case-sensitive, so `Mshock` in the `stoch_simul`-command must be lowercase.  
After fixing this, I get

> ERROR: There are 28 equations but 25 endogenous variables!

---

<div class="post-metadata">

**Author:** ![rong\_huang](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/c68b51/32.png) [@rong\_huang](https://forum.dynare.org/u/rong_huang)\
**Post date:** [18 November 2020 09:06 UTC](https://forum.dynare.org/t/terminate-called-after-throwing-an-instance-of-symboltable-unknownsymbolnameexception/16952/3 "2020-11-18T09:06:26Z")

</div>

Thank you for your reply! It is quite useful！ I try to revise my code according to your suggestion, and it turns out to be the same problem as you. “ERROR: There are 28 equations but 25 endogenous variables!” What should I do next to adjust my code to run it successfully and get the pulse diagram? Thank you!  
The following is the new code file:  
[JP2010\_lin3.mod](https://forum.dynare.org/uploads/short-url/uQqG144gLcpiJvCtWpKUB6a008I.mod) (3.0 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:** [18 November 2020 09:11 UTC](https://forum.dynare.org/t/terminate-called-after-throwing-an-instance-of-symboltable-unknownsymbolnameexception/16952/4 "2020-11-18T09:11:45Z")

</div>

You need to sort out the variable definitions and the equations specified. The current system is overdetermined. That cannot work.

---

<div class="post-metadata">

**Author:** ![rong\_huang](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/c68b51/32.png) [@rong\_huang](https://forum.dynare.org/u/rong_huang)\
**Post date:** [19 November 2020 14:12 UTC](https://forum.dynare.org/t/terminate-called-after-throwing-an-instance-of-symboltable-unknownsymbolnameexception/16952/5 "2020-11-19T14:12:14Z")

</div>

Thank you for your advice. I adjust my equation code. And it can go ahead now. But then I have another 3 mistakes with my new code.  
The following is my new code:  
[JP2010\_lin3.mod](https://forum.dynare.org/uploads/short-url/oO4HBd25BnHZZUJpfTKrGsQumw4.mod) (2.8 KB)  
And this is the error result interface:  
[屏幕快照 2020-11-19 22.07.04|690x383](https://forum.dynare.org/uploads/short-url/zjPY48cm2th6DPZu89apSshyvaS.png)  
Could you tell me where the problem may be and what can I do to make it run successfully?  
Than you.

---

<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:** [19 November 2020 14:20 UTC](https://forum.dynare.org/t/terminate-called-after-throwing-an-instance-of-symboltable-unknownsymbolnameexception/16952/6 "2020-11-19T14:20:28Z")

</div>

```auto
    i - istar = ec(+1) - chi*(alp + phi(+1));

```

needs to be

```auto
i - istar = ec(+1) - chi*(a + phi(+1));

```

I would recommend using Dynare’s \LaTeX capabilities to speed up debugging.

Also note that `DELy` cannot be an endogenous variable. It’s simply  
`y-y(-1)`
