Unable to get the Processing Exception reason from a Queue Item

I am using the Get Queue items activity to retrieve the current items in an Orchestrator Queue. Using a For Each Loop I am able to get all the details of the Queue Item Except for the Processing Exception reason.

Attaching an example of the method I am using. Anyone knows what I am doing wrong?

image

Hi @aleiva, what error are you getting? I’m assuming you are getting Object reference not set to an instance of an object. error?

Cheers.

Hi @quihan,

You are right. That is exactly the error I am getting. Do you know which could be the reason?

Hi @aleiva, the reason is Processing Exception only exists in Failed item. There are two ways to avoid this problem.

  1. Add Failed Status Filter when you using Get Queue Items.
  2. Or if you need other queue statuses, use an If activity to check whether queueitem.status.toString = “Failed”.

Cheers. Hope this helps. :slight_smile:

2 Likes