question

Nicholas D2 avatar image
0 Likes"
Nicholas D2 asked Ben Wilson commented

Task Logic Tutorial 1.2 Throwing Exceptions

I completed the Task Logic Tools Tutorial 1.2 and it seems to be running just fine, but it is throwing these exceptions at the same times each time I run the simulation:

time: 18.678074 exception: FlexScript exception: Array index out of bounds at MODEL:/StandardLogic/Dispatcher1>variables/passto

time: 19.900983 exception: FlexScript exception: Array index out of bounds at MODEL:/StandardLogic/Dispatcher1>variables/passto

time: 22.534476 exception: FlexScript exception: Array index out of bounds at MODEL:/BasicProcessFlowLogic/Dispatcher2>variables/passto

time: 23.084614 exception: FlexScript exception: Array index out of bounds at MODEL:/BasicProcessFlowLogic/Dispatcher2>variables/passto

It doesn't seem to be a problem with my Process Flow, because the plane with the standard logic is generating the same exceptions.

FlexSim 20.1.2
flexsim 20.1.2task logic tutorial 1.2
· 3
5 |100000

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

Jeff Nordgren avatar image Jeff Nordgren commented ·

@nicholas.d2,

The description is good but to receive a more accurate solution, please post your model or something similar that demonstrates your question. Proprietary models can be posted as a private question for FlexSim U.S. support only.

Thanks.

0 Likes 0 ·
Nicholas D2 avatar image Nicholas D2 commented ·
0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @nicholas.d2, was matthew.gillespie's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

0 Likes 0 ·

1 Answer

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered

You didn't do anything incorrectly in this tutorial model. There's a bug in the Round Robin if Available pickoption in the Dispatcher's Pass To field. I've updated your model with an older version of that pickoption that doesn't throw errors.

task-logic-tutorial-12.fsm

Thanks for pointing this out. We'll get it fixed for a future bug fix release.


5 |100000

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