question

Jyhjeng D2 avatar image
0 Likes"
Jyhjeng D2 asked Jeanette F edited

Time Exception Error 2

Hi, there. Recently I watched a video of the FlexSim 2020 Tutorial Part 3,

https://www.youtube.com/watch?v=uWAqVmvbabY

At the time frame 14:37~19:20, there is an example of using a token in the process flow to control the flow item in the 3D model. There are three processors. The token should go from queue 1 to processor 1 and all the way to processor 3 and lastly to sink. I follow the steps in the video exactly. However, some of the steps are not shown clearly in the video.

When I run the program, the time exception occurred as follows.

time: 11.215140 exception: Error: Bad Task Executer reference in create task sequence activity FlowItem to Processor 1/Create TS: Assign Task Sequence to Processor 1 in process flow "ProcessFlow"

time: 26.187525 exception: Error: Bad Task Executer reference in create task sequence activity FlowItem to Processor 1/Create TS: Assign Task Sequence to Processor 1 in process flow "ProcessFlow"

time: 31.746102 exception: Error: Bad Task Executer reference in create task sequence activity FlowItem to Processor 1/Create TS: Assign Task Sequence to Processor 1 in process flow "ProcessFlow"

time: 46.944389 exception: Error: Bad Task Executer reference in create task sequence activity FlowItem to Processor 1/Create TS: Assign Task Sequence to Processor 1 in process flow "ProcessFlow"

Can anyone help me solve the time exception problem?

The FlexSim file can be downloaded here.

https://drive.google.com/file/d/1kEgeoc4tVUCqZnC3xyYkvOyl3VeOVMjj/view?usp=sharing

Thanks.

FlexSim 22.0.1
exception error
· 4
5 |100000

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

Jyhjeng D2 avatar image Jyhjeng D2 commented ·

I made some mistake on my uploaded file. Pardon me. The correct Flexsim file is as follows.

https://drive.google.com/file/d/1XU2MYAR1QxtlO7B83npvGwHUWVQcrCxc/view?usp=sharing

In this model I did not use the Delay activity.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Jyhjeng D2 commented ·

Hello @Jyhjeng D2,

You reference the processor instead of the operator. 1661789471149.png

Task Sequences are for Task Executers like an operator. Not fixed resources like a processor.

0 Likes 0 ·
1661789471149.png (7.1 KiB)
Jyhjeng D2 avatar image Jyhjeng D2 Jeanette F ♦♦ commented ·

Dear Jeanette:

I have updated the task executor to be operator 1. The updated 3D model can be fetched from

https://drive.google.com/file/d/1XU2MYAR1QxtlO7B83npvGwHUWVQcrCxc/view?usp=sharing

However, there is error message when I running the program as shown below,

"An invalid task has been encountered.

Object: Operator 1

Task Number: 3

Task Type: Travel

Involved 1: NULL

Involved 2: NULL

Try profiling the task sequence using profiletasksequence(),

and then review how the task sequence was created."

Please see the image file.

model-2-image2.jpg


0 Likes 0 ·
model-2-image2.jpg (239.2 KiB)
Show more comments

1 Answer

Jeanette F avatar image
0 Likes"
Jeanette F answered Jyhjeng D2 commented

Hello @Jyhjeng D2,

Did you watch part 1 and part 2? I don't know how you made this model following what Cliff did considering you do not use the activities he uses. I also trained with these videos and found them to be thorough. You can also find tutorials in our manual if you would like a different resource to train on. You can also contact your local distributor for training classes and help with your model.

Your error is occurring because you cannot destroy a flow item that a processor is in the middle of processing still. Instead of a Delay activity in your process flow you need to use a wait for event (like Cliff uses in the video). The Object field needs to reference the processor and the Event field needs to be On Process Finish (you can use the eye dropper and hover over the processor to fill both fields).

· 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.

Jyhjeng D2 avatar image Jyhjeng D2 commented ·

I made some mistake on my uploaded file. Pardon me. The correct Flexsim file is as follows.

https://drive.google.com/file/d/1XU2MYAR1QxtlO7B83npvGwHUWVQcrCxc/view?usp=sharing

In this model I did not use the Delay activity.

0 Likes 0 ·
Jyhjeng D2 avatar image Jyhjeng D2 commented ·

Dear Jeanette:

Your answer works for the 3D model I posted. However, the correct 3D model in my question is a different one. Could you try to help with the "Time Exception Error 3" question? There, the right model is attached to the problem described. Thanks.

0 Likes 0 ·