flexscript Error - Syntax Error

flexscript Error - Syntax Error

derek_flannery
Not applicable
143 Views
9 Replies
Message 1 of 10

flexscript Error - Syntax Error

derek_flannery
Not applicable

[ FlexSim 16.2.1 ]

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.

0 Likes
Accepted solutions (1)
144 Views
9 Replies
Replies (9)
Message 2 of 10

kari_payton
Not applicable

@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
Message 3 of 10

derek_flannery
Not applicable

@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
Message 4 of 10

philboboADSK
Autodesk
Autodesk

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.



Phil BoBo
Sr. Manager, Software Development
0 Likes
Message 5 of 10

derek_flannery
Not applicable

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
Message 6 of 10

Ben_WilsonADSK
Community Manager
Community Manager

@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
Message 7 of 10

derek_flannery
Not applicable

I will do that and tag you to the question. Thanks for the help.

0 Likes
Message 8 of 10

Ben_WilsonADSK
Community Manager
Community Manager

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.

3890-2016-11-23-11-43-43-flexsim-2016.png

Did that help at all?

Message 9 of 10

derek_flannery
Not applicable

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

0 Likes
Message 10 of 10

Ben_WilsonADSK
Community Manager
Community Manager
Accepted solution

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.

0 Likes