I am modeling an order picking operation and decided the best route to take was to use a task sequence list. Currently, I am creating the task sequences, pushing them to a list, then having the transporter pull from the list using the OnResourceAvailable trigger.
The problem arises when the transporter completes all the items in the list, it then has additional task sequences which cause an error because there is no flowitem at the location. The transporter is not connected to any centerpoints and profiletasksequence() in the OnReceiveTasksequence trigger does not pick up these rogue task sequences.
I have disabled the OnResourceAvailable trigger and there is no error and the transporter does not receive any rogue task sequences. It is almost as if when it pulls the tasksequence from the queue, it is clearing the ts from the TSList, but not clearing it from the transporter ts queue, if that makes sense?
Any advice on the issue would be greatly appreciated.