TASK ERROR

TASK ERROR

slim_tannoubi
Not applicable
1,217 Views
7 Replies
Message 1 of 8

TASK ERROR

slim_tannoubi
Not applicable

[ FlexSim 17.0.0 ]

capture.jpg

Hello.

i would like to thank everyone for your helps

just a last thing

after running i have a window appearing showing "task error" but it appears not everytime !!!!!!

i attach a screenshot and the model

test.fsm

0 Likes
Accepted solutions (1)
1,218 Views
7 Replies
Replies (7)
Message 2 of 8

jeff_nordgren
Not applicable

@slim tannoubi,

I'm not sure I understand the purpose of your ProcessFlow objects. To me, they seem to be unnecessary. It looks like you are Destroying objects which are then referenced in the 3D portion of your model, which is why you are getting Task Sequence errors. What are you trying to accomplish in your ProcessFlow? The model logic needs to be in the ProcessFlow objects or in the 3D model objects. Putting logic in both the ProcessFlow and 3D model for the same object operation(s) will more than likely cause "weird" problems, like you are experiencing. Attached is your model with the changes that I've made. All I did was disconnect all the Source blocks in the ProcessFlow from the rest of the blocks. I then ran the model multiple times without any errors. So I wonder what the purpose of the ProcessFlow blocks are.

If you are wanting multiple objects to be created after processing, then the suggestion of @Clair A to use a Separator would be a good option.

slim-test-1-jn1.fsm

0 Likes
Message 3 of 8

ClairAu
Collaborator
Collaborator

Hello Slim,

In your Process Flow you delete an item and then create 2 items when the presses finish their process.

I would suggest to use instead a Separator in Split mode. In the attached example, a box enters a separator and is split into 2 entities: a cylinder and a sphere.

Note: please stop using 5 exclamation marks (!!!!!) in your questions, it's unnecessary and looks aggressive.

0 Likes
Message 4 of 8

logan_gold
Community Manager
Community Manager
Accepted solution

The problem is an Operator is dispatched to pick up a flowitem and take that flowitem to its destination, but in your Process Flow you are destroying the flowitem and creating a new flowitem that is placed directly into the original flowitem's destination. This is all done before the Operator has a chance to move the original flowitem.

When the flowitem is destroyed, the Operator that is dispatched still has a task sequence with a Load task that is pointing to an object in the model. Initially, that object is the original flowitem. After the original flowitem is destroyed, FlexSim ends up filling in the reference used in the Load task with something else from the model. That something else can be just about anything in the model. So the Operator loads something it shouldn't, and some of the time an Operator is actually loading an attribute node from other objects in the model.

If you look in the tree at OP DECOUPAGE SEMELLE and OP INSERT after the model is reset, you'll see they contain subnodes like many objects have already been loaded into those Operators even though the model isn't running yet. These subnodes are all attributes of other objects in the model, meaning those objects no longer contain all of their attributes and I am guessing this might cause some issues with the rest of the model further down the road. You will probably want to recreate the model with the fixes mentioned in other answers.

Message 5 of 8

slim_tannoubi
Not applicable

yes it's an idea thank you

but when i want to choose what type of 3D visual will take my item in the rack i cant find my personal items (my own creations)

0 Likes
Message 6 of 8

joerg_vogel_HsH
Mentor
Mentor

@slim tannoubi Then look in Main Menu > View > Media Files, if the shape is loaded into your model already.

0 Likes
Message 7 of 8

slim_tannoubi
Not applicable

@Jörg Vogel yes it is not loaded into the media files how can i do to add them (i created them in

the flowitem bin)

0 Likes
Message 8 of 8

slim_tannoubi
Not applicable

yes it is not loaded into the media files how can i do to add them (i created them in the flowitem bin)

0 Likes