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.

Kari Payton avatar image Kari Payton commented ·

@Derek Flannery Sometimes I get random flexscript errors too. To fix it, I go into the Tree and follow the path from the error to delete whatever it is; or i just restart my computer and it goes away.

0 Likes 0 ·
Derek Flannery avatar image Derek Flannery Kari Payton commented ·

@Kari Payton hi. Well I tried restarting my computer with no luck. Also the path that it gives is not something I have access to or know how to gain access. It seems to be taking you into the source formatting of Flexsim itself instead of just the model, but I am very ignorant and inexperienced with computer programming.

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

Any ideas for this?

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ commented ·

Does it do the same thing with your model on another computer?

Please post your model so we can duplicate the issue and determine what is happening.

0 Likes 0 ·
Derek Flannery avatar image Derek Flannery Phil BoBo ♦♦ commented ·

I don't have access to another computer to test on at the moment. Due to the sensitivity and of the model to the company I work for, I would prefer not to post it on a public forum. I can always contact tech support and go through that route. I was just hoping there was a quick answer from here. I will try to see if I can get another computer to test it on.

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ Derek Flannery commented ·

@Derek Flannery, this is a great use case for the Private Question capability of this community. If you are able to share this model privately with just FlexSim US tech support, a private question is how you would share your model with us.

0 Likes 0 ·
Show more comments
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.

Derek Flannery avatar image Derek Flannery commented ·

It did not. I will try to get a private question set up quickly.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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