question

Kari Payton avatar image
1 Like"
Kari Payton asked Adrian Haws commented

How to profile task sequence?

I get this error when transporting objects:

Can someone show me how to use profiletasksequence() as the error message suggests?

Choose One
task sequenceerror message
screenshot-22.png (9.3 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.

1 Answer

Sam Stubbs avatar image
1 Like"
Sam Stubbs answered Adrian Haws commented

So without seeing your model it would be hard to say why exactly this error is firing. The "Involved 2" variable for a Load tasksequence is the object being loaded from, or the container of the item you're loading. So for whatever reason, in your model you're object to load from is returning as NULL.

If you want to use the profiletasksequence() command. You can open up your script window after the error is thrown, and type the following:

profiletasksequence(gettasksequence(node("Crane1", model()),0));

Just replace the "Crane1" with whatever the name of your Crane is. The gettasksequence() first asks for a reference to the dispatcher of the task sequence (in this case it is your crane itself) and then the rank of the task sequence. The output of the profiletasksequence function will be displayed in your model's Output Console.

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

Adrian Haws avatar image Adrian Haws commented ·

@Kari Payton If I remember correctly, that's probably on a Load activity in the Process Flow. As @Sam Stubbs mentioned, "Involved 2" is the item container. You also need a reference to the item, which is called "Involved 1". Either you have a manual error in how you've set up those references, or for some reason those objects don't exist.

3 Likes 3 ·