question

Derek Flannery avatar image
0 Likes"
Derek Flannery asked Ben Wilson answered

flexscript Error - Syntax Error

Hi. I am working on developing a relatively simple simulation, and when I go to reset the model, I get this error in the compiler console:

"Flexscript ErrorVIEW:/standardviews/statistics/Experimenter/tabcontrol/Experiment Run/runTimePanel/editRunTime>eventfunctions/changeDateTime Line 9

syntax error, unexpected integer, expecting identifier Could not finish parsing because of previous errors.

Flexscript ErrorVIEW:/standardviews/statistics/Experimenter/tabcontrol/Optimizer Run/runTimePanel/editRunTime>eventfunctions/changeDateTime Line 9

syntax error, unexpected integer, expecting identifier Could not finish parsing because of previous errors."

Now I have not ever opened up anything with statistics or the Experimenter. So I am unsure what is causing this. If I run the model, it runs as I expect, so the errors (as far as I can see) cause no adverse effect. But I still don't want to have these errors.

Please let me know what you come up with.

Thanks.

FlexSim 16.2.1
flexscript errorsyntax error
· 6
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image
0 Likes"
Ben Wilson answered

For anyone who finds this public question in the future looking for a solution to their own issue...

In a private question (see how to ask one here), where the model could be privately shared, we found a Global Macro having the same name as a variable in FlexSim's Experimenter interface code. The solution was to change the name of the model's Global Macro.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image
1 Like"
Ben Wilson answered Derek Flannery commented

As this is an error in the VIEW tree, it is worth resetting your views to the defaults to see if that will clear up the issue.

In FlexSim, go to the main menu, View, Open Default Workspace.

Did that help at all?


· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.