question

Tam P avatar image
0 Likes"
Tam P asked Matthew Gillespie edited

Array index out of bounds error and my Combiner keeps attaching a box to my rack

kodiak-pollock-current-8718.fsmarrayoutofindex.jpg

I keep getting this error. "time:70.094468 expection: FlexScript exception: Array index out of bounts at MODEL:/Combiner89>variables/transportdispatcher" I do not know how to fix this. I have attempted and I have no clue. The Combiner89 also seems to generate a box attached to the Gray Rack. I have no idea why. Can you please fix this without making any other changes to the model. Please. Thank you. If you could let me know how you fixed the error I can hopefully not have to ask for your help next time.

FlexSim 18.1.1
error messageindex out of bounds
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

Emily Hardy avatar image
1 Like"
Emily Hardy answered Tam P commented

FlexSim is throwing an exception because you told Combiner89 to use "current.centerObjects[1]" for transport, but didn't create any center connections. To fix this, you can attach the task executor using a "S" connect to Combiner89. I created a connection to FreezerLoader1 because it looked like that's what you wanted (feel free to change this).

The box was being created because you told the combiner to grab 33 from "Input Port 2", which was the "Queue6" instead of "Source1". When I changed the rank it seemed to work.

Hope this helps.

13966-kodiak-pollock-current-8718.fsm


· 7
5 |100000

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