Getting an issue while getting exception message for Queue Item

Getting an issue while getting an exception for Queue Item.

I’m trying to get the status and divide it using Success and Failure using GetQueue Item Activity and trying to get exception message if Fails .

How can I do it?

I have used currentitem.ProcessingException.Reason.

when success the ProcessingException would be null

We can divide on Status
or we can handle defensive

If(isNothing(currentitem.ProcessingException),"",currentitem.ProcessingException.Reason)

I have created if condition already



An item can also have Status which is NOT Success but not having a set ProcessingException

You can explore by debugging and checking within the debugging panels:
Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum

within the immediate panel you can also explore the defesive statemetn from above

1 Like

Can you share a flow for if condition please.

Thankyou

we shared with you a link and highly recommend to work with the debugging panels

For more details on the different status of a queue item have a look here:

Taken from:

I tried didn’t get it

Checkout the Debugging courses within the UiPath Academy
Rewatch the Video from the Link
Ensure that the flow is so far advanced that currentItem is not null

dump out
currentItem
currentItem.Status

@BHUSHAN_NAGAONKAR1

Can you please print currentitem.status in the immediate panel and check or show

Cheers

Hi,


Failed.

@BHUSHAN_NAGAONKAR1

For reason above the log you are showing looks like the log from the failed message

cheers

Yes I now understood how it works thanks to you

1 Like

@BHUSHAN_NAGAONKAR1

Glad it helped…is your question on thie complete? Or any follow up as well?

Cheers

1 Like

Just one last question can we also make it work Reframework and Process as well.

Will it able to work for both scenarios with queues or without queues?

@BHUSHAN_NAGAONKAR1

Without queue…you can to update the status for each transaction and then at last you can get the consolidated report as needed

Cheers

Can we create a library as such where we do get both failure/Successful for item with Reframework (with queue)and only process (without queues)?

@BHUSHAN_NAGAONKAR1

You can…you can add the queue names if queue is present else send the excel file where all the items data is present and can create report and send it out…

Cheers

Can you share a flow.

@BHUSHAN_NAGAONKAR1

You already built one…whatelse is nedxed?

Cheers