question

Cody Barniak avatar image
0 Likes"
Cody Barniak asked Adrian Haws commented

Task Error Issue

Hello.

Usually on friday the 13th or during the first week of feb, I get a task error on my task executer, than stops the model from continuing its run. Can't seem to understand why I have looked through the options but can not find the error.

Appreciate your time.

Cody

modelo-propuesto-dias.fsm

FlexSim 7.7.4
warehousetask executertask sequence
· 1
5 |100000

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

Adrian Haws avatar image
0 Likes"
Adrian Haws answered Adrian Haws commented

Hi Cody,

I apologize that my initial process flow caused some problems in your model. Some weird things happen when a Pull from List tries to pull 0 items. Basically it pulls all the items it can, and moves them to the queue as you see in the model. However, the items stay on the list and show as NULL when pulled again. I fixed this by placing a query in each list that only pulls anything if the item label is greater than 0.

Another issue is that you set up the item labels to choose a row of the global table based on a "curWeek" label, which didn't exist. This was an easy fix, as I just changed the "curDay" label to "curWeek".

Your model now seems to be running correctly. However, there is an error that appears saying that "Alm Azucar" tries to place an item in bay 0 and level 0. I haven't yet been able to find the cause of this issue, but it seems unrelated to the Process Flow changes I made. I'll look more into it when I can, but it might help to ask about that in a new question.

See attached model for changes.


· 2
5 |100000

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

Logan Gold avatar image
0 Likes"
Logan Gold answered Adrian Haws commented

I think part of the problem might have to do with the Sub Flow in your Process Flow.

In the Sub Flow, all child tokens are created at the same time with their creationRank label set correctly. However, each child token goes through the Sub Flow one at a time. This means entries are removed from the "pulled" array of the parent token before most of the child tokens set their "item" label in the first Assign Labels activity.

So the first child token of a batch should have its item label set correctly (it will match the first entry of the array). However, after it makes it way through the rest of the Sub Flow and the last Assign Labels activity removes the first entry from the array, the rest of the entries move up one position in the array. The second child token sets its item label to the second entry in the array as expected, but that entry used to be the third entry.

Because of this, I believe each child token after the first token is not correctly setting their item label to the correct reference. I think you will want to change the first Assign Labels activity in the Sub Flow so it sets the item label of each child token to the first index in the pulled array and not even worry about the creationRank label at all. You can change the Index field from getlabel(token,"creationRank") to 1.

Please let me know if my understanding of your model is incorrect, because after making this change and running the model, an error occurs much earlier in the model run.

· 1
5 |100000

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