Error message: Missing variables or other problems

Use this forum to post Vensim related questions.
Post Reply
MariaTherese
Junior Member
Posts: 6
Joined: Tue Jul 25, 2017 1:44 pm
Vensim version: PLE

Error message: Missing variables or other problems

Post by MariaTherese »

Hello!

When trying to open two recently developed models I get the following message from Vensim: "The file has errors, there may be missing variables or other problems". When opening the model, half of the content is gone.
What do I do? I tried reinstalling the software.

Best,
Therese
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Error message: Missing variables or other problems

Post by Administrator »

Are there any other files in the folder with the model? Vensim does create backups, one of them might be available.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
MariaTherese
Junior Member
Posts: 6
Joined: Tue Jul 25, 2017 1:44 pm
Vensim version: PLE

Re: Error message: Missing variables or other problems

Post by MariaTherese »

No, there are no other files in the folder..
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: Error message: Missing variables or other problems

Post by tomfid »

We'd have to see the model to say more.

Generally, there's a backup - if you have fred.mdl, there will be a fred.2mdl - rename that to fredBak.mdl and try opening it.

This kind of corruption is extremely rare. What version & operating system are you running?
MariaTherese
Junior Member
Posts: 6
Joined: Tue Jul 25, 2017 1:44 pm
Vensim version: PLE

Re: Error message: Missing variables or other problems

Post by MariaTherese »

Tried to open an old version of one of the corrupted models, to rebuild the most recent additions. The same error then occurred after a while, and this time there was a back-up. Nevertheless, the back-up has got the same error.
I have the macOS 10.12.6, and just installed the last version of VensimPLE.
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: Error message: Missing variables or other problems

Post by tomfid »

We'd have to see the model to say more.
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Error message: Missing variables or other problems

Post by Administrator »

Are you saving the model into DropBox, OneDrive, Google Drive or similar?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Error message: Missing variables or other problems

Post by Administrator »

In the model you emailed to us, change

Code: Select all

"Mercury 
 in runoff"  = A FUNCTION OF( Soil damage)
	~	
	~		|
to

Code: Select all

Mercury in runoff  = A FUNCTION OF( Soil damage)
	~	
	~		|
Does it load ok now?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
MariaTherese
Junior Member
Posts: 6
Joined: Tue Jul 25, 2017 1:44 pm
Vensim version: PLE

Re: Error message: Missing variables or other problems

Post by MariaTherese »

That seems to be one of the variables missing when I open the model?
tomfid
Administrator
Posts: 3804
Joined: Wed May 24, 2006 4:54 am

Re: Error message: Missing variables or other problems

Post by tomfid »

Change it in the .mdl file, using a text editor.
MariaTherese
Junior Member
Posts: 6
Joined: Tue Jul 25, 2017 1:44 pm
Vensim version: PLE

Re: Error message: Missing variables or other problems

Post by MariaTherese »

Thanks for having a look at it! Still doesn't work though, even after changing the variable in the text file.
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Error message: Missing variables or other problems

Post by Administrator »

MariaTherese wrote:Thanks for having a look at it! Still doesn't work though, even after changing the variable in the text file.
What error message are you getting now?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
MariaTherese
Junior Member
Posts: 6
Joined: Tue Jul 25, 2017 1:44 pm
Vensim version: PLE

Re: Error message: Missing variables or other problems

Post by MariaTherese »

Its the same, and the model is still corrupted.
Post Reply