Queue item doesn't change from "In Progress" to "Failed" in dispatcher

Hi All,

In my automation for a failed business exception, The queue item gets uploaded in the performer queue as "Failed.
But it’s still “In Progress” in the dispatcher queue. How do I change this?

Here’s my code.
I have added “Add transaction item and set status” it changes in one queue (performer) but not in Dispatcher.

@sharon.palawandram

Use Get TransactionItem activity to read the item from the queue and pass the output to Set Transaction Item activity to update the status of it.

Use the activity “Set Transaction Status” and add the status “Failed” while providing the transaction error details as shown below.

@sharon.palawandram

I believe you have two queues…if there is a common reference is use it and use get queue items activity to get the in progress item from the dispatcher queue and then use set transaction on the retrieved item

If reference is not there then get all in progress and then loop and check using specific content

Hope this helps

Cheers

1 Like

Thank you. I did this and got one error

@sharon.palawandram

Get queue items will give you enumerable of queue items…so you have to extract one …if you are sure that its only one item thats matching then use inptogressitems(0)

Cheers

1 Like

Thank you, this worked :smiley:

1 Like

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