Invalid file type error

Use this forum to post Vensim related questions.
Post Reply
Phill
Senior Member
Posts: 156
Joined: Wed Jun 04, 2014 2:18 pm
Vensim version: DSS

Invalid file type error

Post by Phill »

Hello,

I am using DSS 7.2 Double Precision and, since the recent upgrade, I have been frequently receiving 'Stop from Vensim' errors on saving, with an 'Invalid file type' message. If I open a new model and save, everything is fine. But if I try later to 'Save as' into a different folder (which i do often to keep track of different model versions) then I get this error. I can select save as 'Vensim model', 'mdl' or vmf', the result is the same. I have to use 'Save' to overwrite the original file and then copy that to the new directory. I am running Vensim under Windows 10. Has anyone else encountered, and hopefully solved, this problem?
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Invalid file type error

Post by Administrator »

Are you running any file sync software such as Dropbox/OneDrive/Google Drive?
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
Phill
Senior Member
Posts: 156
Joined: Wed Jun 04, 2014 2:18 pm
Vensim version: DSS

Re: Invalid file type error

Post by Phill »

I'm running Onedrive, but I'm saving to the local drive. I only ever use the local drive for Vensim because the models don't load exogenous data files correctly if I run them from Onedrive folders.
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Invalid file type error

Post by Administrator »

What about path lengths and file names? Are you saving to a really long path? Filenames, are these really short (such as 1.mdl)?
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
Phill
Senior Member
Posts: 156
Joined: Wed Jun 04, 2014 2:18 pm
Vensim version: DSS

Re: Invalid file type error

Post by Phill »

I'll try removing the model folders from the Onedrive synchronisation and see if that helps. Thanks
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Invalid file type error

Post by Administrator »

If they are in a OneDrive folder that could explain things. All these file sync applications can lock a file (to upload it), which causes problems for the apps actually using the files.
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
Phill
Senior Member
Posts: 156
Joined: Wed Jun 04, 2014 2:18 pm
Vensim version: DSS

Re: Invalid file type error

Post by Phill »

Your tip worked, thank you! I removed the model folders from the Onedrive sync list and rebooted the computer. Now the files save without that error. It never occurred to me that that might be the problem, as I don't save model files directly to Onedrive.
Post Reply