Dispatcher > Different UiPath Studio
I add item to the queue
I create variable in main section (Arguments)


END PROCESS
Error, Where am I making mistakes?
Edit: I can get the first two items. I just can’t print the output.
Dispatcher > Different UiPath Studio
I add item to the queue
I create variable in main section (Arguments)


END PROCESS
Error, Where am I making mistakes?
Edit: I can get the first two items. I just can’t print the output.
Do you mean the loop works for 2 iterations but not for all? Do you add the output also for failed items?
To avoid the exception you could add an If statement with condition currentItem.Output.ContainsKey("Output Message Done")
Do you have filter of only successful items in the get queue items…because for failed items output values wont be present
Cheers
It’s possible for newer versions
Setting the
Outputproperty for failed transactions is only possible when connected to a 2022.10 and newer versions of Orchestrator.
The Set Transaction Status activity now has both Output and Analytics data present in Orchestrator even when the status of the item is Failed.
Thanks for your reply but it showed all the results in the queue. The result is unsuccessful.
Thank you for your reply, but I have marked it before. The result is unfortunately unsuccessful.

It shouldn’t throw the exception if you added the If as I suggested.
I noticed you mention the Orchestrator folder path in Get Queue Items activity. Can you check if it’s what you expect it to be? Btw, if you use an empty value it would use the folder from which you are running, which I believe is in most cases what is desired.
are there some test queue items or items which you added previously for which this field is not present?
cheers
The points you mentioned are correct.
![]()
![]()
No test queue ![]()
I can’t find a solution
Can you check from the locals panel pelase…if you are getting correct queue item…
Open locals pnel and currentitem
Cheers
Hi @Mesut_Can ,
Have you tried performing it in Debug Mode with a Complete new Queue (Delete and Recreate Queue and Add Items) ? This should give us a direction on the error that’s occurring.
With Debug Mode and new Queue Items, if the Activity gets an Error, we can then simply check the currentItem value in Immediate Panel. We will be able to understand to what Queue Item it belongs to and if the necessary Output data is present in it.
Try adding a null check to the If’s condition:
currentItem.Output IsNot Nothing AndAlso currentItem.Output.ContainsKey("Output Message Done")
I solved the problem very simply. I moved the Build data table activity up and it did not give an error.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.