Page 1 of 1

Undefined error

Posted: Sun Jan 18, 2015 12:09 pm
by Phill
Hello,

I'm encountering an error I don't understand when I try to simulate a model with an attached Excel data sheet. The error appears while the run is setting up and is a message box simply saying 'bob.'. An image of the error is attached. No other information is available and i can't find any reference to this in the Vensim manuals or help files and I'd be very grateful if someone could help.

Phill

Re: Undefined error

Posted: Sun Jan 18, 2015 2:39 pm
by Administrator
I cannot find anywhere in the code where a message like that would be displayed.

Can you post the model and spreadsheet to see if I can find it?

And are you using external functions?

Re: Undefined error

Posted: Sun Jan 18, 2015 4:09 pm
by Phill
The model and the Excel file are attached. I realise they're not complete, but I'm interested to know what is giving that error.

Phill

Re: Undefined error

Posted: Sun Jan 18, 2015 4:40 pm
by Administrator
What steps are you taking to get the error? When I try and simulate, all I get is the "This model has errors and cannot be simulated" error.

Re: Undefined error

Posted: Mon Jan 19, 2015 9:59 am
by Wilson
Hi Phil,

That's not an error message.

Your model is using the Vensim MESSAGE function. When you simulate the model, the criteria for displaying the message are met and so it appears on screen.

Have a look at the variables:

AptMessageString
AptDisplayMessage

Wilson

Re: Undefined error

Posted: Mon Jan 19, 2015 1:08 pm
by Phill
:oops: Thank you Wilson! When I saw the box was marked 'Message from Vensim' I assumed it was a system message resulting from an error. I think I got myself into a positive feedback loop trying to work out what the error was!

Thank you both for your time and your assistance.

Phill