Page 1 of 1

Error message: Missing variables or other problems

Posted: Tue Jul 25, 2017 1:54 pm
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

Re: Error message: Missing variables or other problems

Posted: Tue Jul 25, 2017 1:59 pm
by Administrator
Are there any other files in the folder with the model? Vensim does create backups, one of them might be available.

Re: Error message: Missing variables or other problems

Posted: Tue Jul 25, 2017 2:07 pm
by MariaTherese
No, there are no other files in the folder..

Re: Error message: Missing variables or other problems

Posted: Tue Jul 25, 2017 2:13 pm
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?

Re: Error message: Missing variables or other problems

Posted: Tue Jul 25, 2017 2:58 pm
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.

Re: Error message: Missing variables or other problems

Posted: Tue Jul 25, 2017 3:08 pm
by tomfid
We'd have to see the model to say more.

Re: Error message: Missing variables or other problems

Posted: Tue Jul 25, 2017 4:41 pm
by Administrator
Are you saving the model into DropBox, OneDrive, Google Drive or similar?

Re: Error message: Missing variables or other problems

Posted: Tue Jul 25, 2017 6:52 pm
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?

Re: Error message: Missing variables or other problems

Posted: Wed Jul 26, 2017 7:31 am
by MariaTherese
That seems to be one of the variables missing when I open the model?

Re: Error message: Missing variables or other problems

Posted: Wed Jul 26, 2017 1:05 pm
by tomfid
Change it in the .mdl file, using a text editor.

Re: Error message: Missing variables or other problems

Posted: Thu Jul 27, 2017 8:04 am
by MariaTherese
Thanks for having a look at it! Still doesn't work though, even after changing the variable in the text file.

Re: Error message: Missing variables or other problems

Posted: Thu Jul 27, 2017 12:31 pm
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?

Re: Error message: Missing variables or other problems

Posted: Thu Jul 27, 2017 1:24 pm
by MariaTherese
Its the same, and the model is still corrupted.