question

Ryusuke T avatar image
0 Likes"
Ryusuke T asked Jacob Gillespie answered

What causes the same error to appear multiple times?

Please run the script in the attached file.

script_error.fsm

This is a simple error and is caused by not adding a semicolon at the end of the second line.


A question from a customer is why multiple errors with the same content are displayed for one error. The customer's request is to output one error message for each error.


Do you have any comments on this matter?

FlexSim 24.0.0
flexscript error
script-error.fsm (24.7 KiB)
5 |100000

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

1 Answer

Jacob Gillespie avatar image
0 Likes"
Jacob Gillespie answered

@Ryusuke T

This is just a quirk of the script console. When you click the Execute button it tries to build the FlexScript code twice. That is why there is two errors.

This looks like a bug. I'll add a case to the dev list.

5 |100000

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