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.
ppr
(Peter Preuss)
December 22, 2023, 2:21pm
2
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
ppr
(Peter Preuss)
December 22, 2023, 2:31pm
4
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
ppr
(Peter Preuss)
December 22, 2023, 2:34pm
6
we shared with you a link and highly recommend to work with the debugging panels
ppr
(Peter Preuss)
December 22, 2023, 2:36pm
7
For more details on the different status of a queue item have a look here:
Taken from:
The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...
ppr
(Peter Preuss)
December 22, 2023, 2:39pm
9
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
Anil_G
(Anil Gorthi)
December 24, 2023, 1:06pm
10
@BHUSHAN_NAGAONKAR1
Can you please print currentitem.status in the immediate panel and check or show
Cheers
Anil_G
(Anil Gorthi)
December 24, 2023, 4:46pm
12
@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
Anil_G
(Anil Gorthi)
December 24, 2023, 5:10pm
14
@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?
Anil_G
(Anil Gorthi)
December 24, 2023, 5:34pm
16
@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)?
Anil_G
(Anil Gorthi)
December 24, 2023, 6:06pm
18
@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
Anil_G
(Anil Gorthi)
December 25, 2023, 1:30am
20
@BHUSHAN_NAGAONKAR1
You already built one…whatelse is nedxed?
Cheers