To get the failed transaction item reason

Hi All,
In REFramework in the end process im trying to get the failed transaction items(Status, Reason)
Get Queue Item> For each list>current item>
Status=currentitem.Status.toString
if(currentitem.SpecificContent.ContainsKey(“Reason”))
> Reason=currentitem.SpecificContent(“Reason”).toString
else
Reason=NoReason

This is how i tried.

Here is the image of failed transaction details


I tried this . But not able to pull the failed reasons. This is the report

YourQueueItem.ProcessingException.Reason woudl give us the reason.
But it can happen that YourQueueItem.ProcessingException is Null

give try at:

If(IsNothing(YourQueueItem.ProcessingException),"No Reason",YourQueueItem.ProcessingException.Reason)


Thanks @ppr

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