Unable to open VDF when it's not locked

Use this forum to post Vensim related questions.
Post Reply
meichunlan
Newbie
Posts: 1
Joined: Thu Feb 28, 2019 10:53 pm
Vensim version: DSS

Unable to open VDF when it's not locked

Post by meichunlan »

Hello,

I need to produce simulated forecast on a regular basis. I wrote a cmd file to start the simulation, and the cmd file is triggered by Windows Task Scheduler. While this is all working as expected, I am running an issue that sometimes Vensim is not able to read VDF(fcst.vdf), and the prompt screen would appear asking for a new name for dataset. If I don’t enter a new name the simulation won’t start. This happens when the model and vdf are not locked by another Vensim application. Any suggestion?

Here is my cmd file:

SPECIAL>NOINTERACTION
SPECIAL>LOADMODEL|model.mdl
SIMULATE>SETVAL|FINAL TIME=3784
SIMULATE>READCIN|plant.cin
TIMEAXIS>DATEDISPLAY|||2018|10
SIMULATE>RUNNAME|fcst
MENU>RUN|o
MENU>VDF2CSV|fcst.vdf|fcst.CSV|fcst.lst|*||3617|3784
MENU>EXIT

Here is the log:

Vensim DSS version 7.2 Single Precision error log starting Thu Feb 28 16:17:23 2019
Executing SPECIAL>LOADMODEL|model.mdl.
Executing SIMULATE>SETVAL|FINAL TIME=3784.
STOP: Problems encountered in the simulation.
Executing MENU>VDF2CSV|fcst.vdf|fcst.CSV|fcst.lst|*||3617|3784.
ERROR: Unable to open the file fcst.vdf.
STOP: Unable to open fcst.vdf to read data.

Executing MENU>EXIT.

Thank you very much!
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: Unable to open VDF when it's not locked

Post by tomfid »

I think the problem is that the vdf has not been created, due to the previous error:
STOP: Problems encountered in the simulation.

Not sure what causes that - perhaps a missing input file. You might try turning off NOINTERACTION to see if you get any additional queries.
Post Reply