Text mode problem

Use this forum to post Vensim related questions.
Post Reply
RWTH_FCN
Senior Member
Posts: 148
Joined: Wed Feb 08, 2017 9:10 am
Vensim version: DSS

Text mode problem

Post by RWTH_FCN »

Hi,
I closed my model yesterday without any problem, but when I want to open it today it is text mode. When I want to change its mode from text to sketch I get this error: "Syntax error". Can you help me how to fix this problem.
Best Regards
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Text mode problem

Post by Administrator »

Can you share the syntax error?

And do you save your models in 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
RWTH_FCN
Senior Member
Posts: 148
Joined: Wed Feb 08, 2017 9:10 am
Vensim version: DSS

Re: Text mode problem

Post by RWTH_FCN »

Administrator wrote: Sat Jan 26, 2019 3:19 pm Can you share the syntax error?

And do you save your models in Dropbox/OneDrive/Google drive?
I get attached error. No I do save it in Dropbox/OneDrive/Google drive.
Attachments
syntax error.jpg
syntax error.jpg (322.18 KiB) Viewed 6140 times
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Text mode problem

Post by Administrator »

It's hard to see anything on that image. What is "min cost flows"? And where does the cursor end up when you click ok?
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
RWTH_FCN
Senior Member
Posts: 148
Joined: Wed Feb 08, 2017 9:10 am
Vensim version: DSS

Re: Text mode problem

Post by RWTH_FCN »

Administrator wrote: Sat Jan 26, 2019 3:40 pm It's hard to see anything on that image. What is "min cost flows"? And where does the cursor end up when you click ok?
I solved it. The problem was related to the compiler. Vensim had lost its connection to compiler, as a result, I could not change its text mode to sketch mode.
Phill
Senior Member
Posts: 156
Joined: Wed Jun 04, 2014 2:18 pm
Vensim version: DSS

Re: Text mode problem

Post by Phill »

Strange that you should ask about Dropbox/One Drive/Google Drive though! I use a Windows 10 computer for Vensim and can't run any MDL file with external data sources if I save it to One Drive. In fact, I can't even run them if saved directly to a synchronised folder on my local drive and I have to go through the OS - Users - Documents - Folders route to be able to run Vensim models. Is there any work around for this, so that I can run the models directly from One Drive? Models without external data sources work without any problems, by the way.

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

Re: Text mode problem

Post by Administrator »

OneDrive/other file syncing apps will often lock a file while it is syncing/checking. This is obviously a problem for programs like Vensim that need to read from them which is why things go wrong.
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
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: Text mode problem

Post by tomfid »

Strange that you should ask about Dropbox/One Drive/Google Drive though! I use a Windows 10 computer for Vensim and can't run any MDL file with external data sources if I save it to One Drive.
This is indeed strange. I use OneDrive and Dropbox with models every day, on both Win7 and Win10, with no problems at all.
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: Text mode problem

Post by tomfid »

However ... what are your external data sources? If you're using GET XLS with Office365, that might be the problem. OneDrive+365 is basically Sharepoint, and Sharepoint is very stupid about working offline and insists on trying to open everything via the cloud rather than locally. That might screw things up. You could try GET DIRECT instead.
Phill
Senior Member
Posts: 156
Joined: Wed Jun 04, 2014 2:18 pm
Vensim version: DSS

Re: Text mode problem

Post by Phill »

In the cases where I have these problems, I am indeed using GET XLS with Office 365. I'll try using GET DIRECT instead and see if that changes things.
Thanks
Post Reply