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.

Tam P avatar image Tam P commented ·

Hi. I get an error saying my tree file format is not compatiable with yours. Does it need to be resaved as an older version?

0 Likes 0 ·
Emily Hardy avatar image Emily Hardy ♦ Tam P commented ·

Sorry, I was working on it in 18.2. Here's the file in 18.1:

tam-support.fsm

0 Likes 0 ·
tam-support.fsm (2.0 MiB)
Tam P avatar image Tam P Emily Hardy ♦ commented ·

destination-not-reachable.jpg

My new error is my destination is not reachable. I attempted to repair my model as you advised. I got the same error as your model. How can I fix this? Thankskodiak-pollock-current-8718.fsm

0 Likes 0 ·
Show more comments
Tam P avatar image Tam P commented ·

I thought the a star network was specifically set up for pulling racks out and not for putting them into the freezers. Can I still add the destination and worker to the A*network?

0 Likes 0 ·
Emily Hardy avatar image Emily Hardy ♦ Tam P commented ·

I was mistaken- it was actually an issue with the network nodes. You had a few nodes but the network was invisible so I missed it. I removed the existing NNs and it works without throwing that error. If you do want to work with the network nodes you'll have to make sure Combiner89 is attached to the network.

tam-support-1.fsm

0 Likes 0 ·
tam-support-1.fsm (2.0 MiB)
Tam P avatar image Tam P Emily Hardy ♦ commented ·

Thank you for the help. I got it to work. Thanks again for the support.

0 Likes 0 ·