Need help for fixing syntax error

Use this forum to post Vensim related questions.
Post Reply
alvinpoon
Member
Posts: 32
Joined: Sun Mar 01, 2020 6:23 am
Vensim version: PRO

Need help for fixing syntax error

Post by alvinpoon »

Hi

I get 2 MDL files from SDR supplementary (see attached) that I cannot open it.

It shows the text view, and I can't switch to the sketch view as it promts syntax error, I appreicate someone who know how to solve this and advise?

Thanks a lot.
Attachments
rework.mdl
(109.1 KiB) Downloaded 153 times
Supply Constraints Model SDR Final.mdl
(80.54 KiB) Downloaded 147 times
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: Need help for fixing syntax error

Post by tomfid »

Any chance that these files were opened into a browser window, then saved with a Save As... ?

The problem is that a bunch of invalid line breaks in variable names have been inserted into the text. For example:

Code: Select all

Current Normal Development Capacity = Normal Engineer
Capacity*(1-step(1,Methodology Intro Date\
		))
+Engineering Capacity Under New Methodology*step(1,Methodology Intro Date)
	~	tasks/Month
	~	Maximum Development Capacity if Organization Follows
Methodology
	|
Normal Engineer<cr/lf>Capacity should be Normal Engineer Capacity with a space instead of a line break. I think Vensim didn't insert these breaks, because it uses \ for line breaks, and doesn't break variable names.

This could be fixed, but it might be a lot of manual labor. It would be much easier if you could get an uncorrupted version of the files. Using Save Link As ... often works where text retrieval won't.
Post Reply