question

slim tannoubi avatar image
0 Likes"
slim tannoubi asked slim tannoubi edited

TASK ERROR

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

FlexSim 17.0.0
task error
capture.jpg (742.9 KiB)
test.fsm (980.9 KiB)
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
2 Likes"
Logan Gold answered

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.

5 |100000

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

slim tannoubi avatar image
0 Likes"
slim tannoubi answered Joerg Vogel commented

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

5 |100000

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

Clair A avatar image
0 Likes"
Clair A answered slim tannoubi edited

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.


· 3
5 |100000

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

slim tannoubi avatar image slim tannoubi commented ·

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 0 ·
Joerg Vogel avatar image Joerg Vogel slim tannoubi commented ·

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

0 Likes 0 ·
slim tannoubi avatar image slim tannoubi Joerg Vogel commented ·

@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 0 ·
Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered Jeff Nordgren edited

@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


slim-test-1-jn1.fsm (980.1 KiB)
5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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