get vdf data and get vdf constant does not work if the file is empty

Use this forum to post Vensim related questions.
Post Reply
LAUJJL
Senior Member
Posts: 1444
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

get vdf data and get vdf constant does not work if the file is empty

Post by LAUJJL »

Hi

joined a model using get vdf data that generates an error if one uses an empty file. same is one uses the get vdf constants function.

Regards.

JJ
Attachments
essai.mdl
(2.05 KiB) Downloaded 166 times
tomfid
Administrator
Posts: 3860
Joined: Wed May 24, 2006 4:54 am

Re: get vdf data and get vdf constant does not work if the file is empty

Post by tomfid »

This is by design, but I agree that it's a stupid limitation. We've been considering a fix. The obvious thing to do is to return :NA: for missing items. Even nicer would be to have an additional version of the function that allowed specifying a default value (like 0) when the file is missing.
LAUJJL
Senior Member
Posts: 1444
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

Re: get vdf data and get vdf constant does not work if the file is empty

Post by LAUJJL »

Hi Tom

Every time that a file is missing, one has to erase the folrmula with the get vdf and replace with :NA: or anything else, run the model to get the run and then get the get vdf formula back with the name of the run generated. This is cumbersome. What is the purpose of the actual design? it would be much more practical just to generate the values mentionned in the definition of the formulas.

Regards.

JJ
Post Reply