Profile Task Sequence Error

Profile Task Sequence Error

miguel_p9
Not applicable
1,882 Views
10 Replies
Message 1 of 11

Profile Task Sequence Error

miguel_p9
Not applicable

[ FlexSim 21.0.5 ]

Hi,

In a task sequence where the task executors have to load and unload Bags i'm having a Profile Task Sequence Error when i need to load the "2nd time".
41520-capturar.png

When both Task Executors do the first load and unload it's okay but when they reach the load for the 2nd time after a "More Items to Load" = Yes; this prompt error appears:

1625648422365.png

How can i solve it?

Aeroporto.fsm

Thanks, Miguel Pereira.

0 Likes
Accepted solutions (1)
1,883 Views
10 Replies
Replies (10)
Message 2 of 11

roi_sn
Not applicable
Accepted solution

Hi @Miguel Pereira, you are trying to load and unload continuously the same item referenced on 'token.BagsIn' label. As Task Executers are unloading this 'token.BagsIn' item in a sink which is called 'ZonaDescarga', these items are destroyed just after the unload. As a result, in the second load &unload cycle, as they are trying to load the same item, the error comes up.

I do not know exactly what you are trying to do but I guess you should have an array of items in order to load and unload one after another.

0 Likes
Message 3 of 11

miguel_p9
Not applicable

I'm trying to load those groups of 40-60 bags but 15 at a time, so each task executors should go there 2 or 3 times.

0 Likes
Message 4 of 11

miguel_p9
Not applicable

i've made some changes and as you can see i'm using the array in the run sub flow, but it's still not working. I'm not sure if i understood how to do the array but i've did the same way i've learn on a tutorial.

Aeroporto.fsm

Thanks.

0 Likes
Message 5 of 11

roi_sn
Not applicable

@Miguel Pereira, if you already create 1 token per baggage to load & unload you don´t need to check if there are more things to load. 1625742991675.png

Message 6 of 11

joerg_vogel_HsH
Mentor
Mentor
You work with the index variable creationRank to address the fields of an array. That is OK, but an Array keeps empty fields still as fields and this causes that they are counted as content when you read the length of an array. Once the items are processed, you must empty the array, by assigning an empty array. You can also work with pop() or shift() methods to return a value of an field and erase it from an array, when you unloads finally the items and before they reach a sink.
Message 7 of 11

miguel_p9
Not applicable
It doesn't work if i take that decide off because i'm incrementing the label after the finish and it goes to another Queue. I'll try Joerg solution.
0 Likes
Message 8 of 11

miguel_p9
Not applicable

I'm sorry @Roi Sánchez & @Joerg Vogel but i deleted the wrong comment.

Anyway, the problem is i unload 60 bags from the plane but the AGV can only load 15 at a time, so i need them to go there twice before another plane comes in.

That is why i had that Decide inside of the subflow.

I've tried to do the unload process inside of another sub flow with a new assign label but still not working.

Aeroporto.fsm

Anyway, with a Queue instead of a sink that problem doesn't occur but there's a new one: is that the AGV are loading again the Bags that they unload (the Queue next to where they start) instead of load again from the Queue next to the plane.

0 Likes
Message 9 of 11

joerg_vogel_HsH
Mentor
Mentor
As I see it, you pull from your main process. You don't have to run more often inside a subflow, because you don't have the references to the items on the list then. The sub process does one tansport cycle, then for another cycle you need new pulled items.
0 Likes
Message 10 of 11

miguel_p9
Not applicable
The problem is i need them to load all bags and i can't wait for another pull process before that, because that pull process means there's more 60 bags incoming...
0 Likes
Message 11 of 11

eric_m3
Not applicable
Hi @Miguel Pereira were you able to find a solution to your question? If so, can you accept Roi's answer or post a new answer with the solution? Thanks
0 Likes