question

David Seo avatar image
0 Likes"
David Seo asked Ben Wilson commented

The error message when creating items of send message

@Jeff Nordgren

Flowitems are created in Queue_In23 on sending the message from other queues remotely.

And set to perform batching with 6. When first running, the error message does not happen. Batch perform is also OK.

But after Reset and run, the error is followed;

1) System Console;

time: 13.918134 exception: Exception Caught in Queue::onReceive(treenode item, int port) object: /Queue_In23 time: 13.918134 exception: Exception Caught in ObjectFunction255__project_library_FixedResource_behaviour_eventfunctions_OnReceive object: /Queue_In23 i: /Queue_In23/Box38 class: /Queue_In23 time: 13.918134 exception: Exception caught in TreeNode::receivemessage() time: 13.918134 exception: FlexScript exception: MODEL:/Queue_In23>variables/messagetrigger

2) Perform batch is invalid.

Please make me know the reason.

event-pull-from-list-test-v201703-091-3.fsm

FlexSim 17.0.3
send message to create items
5 |100000

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

1 Answer

Ben Wilson avatar image
0 Likes"
Ben Wilson answered Ben Wilson commented

Hi @david.seo,

In Queue_In23, you have both the following commands:

newitem = insertcopy(template, destination);
moveobject(newitem, destination);

If you comment out the moveobject() command, the exceptions go away. Because newitem is being created directly in the destination already, you don't need to move it there again.

If for some reason you do need to do a moveobject() call, put it on another event via another delayed message in zero time.

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

David Seo avatar image David Seo commented ·

Thank you. @Ben.Wilson.

0 Likes 0 ·