Dear UiPathers
I am currently working on a project where we need to log the amount of business exceptions (0 or more) that a queue item has.
There are two scenarios a queue item can be in.
-
0 business exceptions: If this is the case, then we dont need to save the name of the queue item and it’s amount of business exceptions
-
more than 0 business exceptions: If a queue item has more than 0 business exceptions, than save the queue item name and the amount of business exceptions
I am currently doing this call “XXX/DefaultTenant/orchestrator_/odata/QueueItems?$filter=Status eq ‘Failed’ and ReviewStatus eq ‘None’&$expand=QueueDefinition” and this works fine, we get all the failed queue items but are here we get both application AND business exception which is not what we want.
I am then trying to do this call XXX/DefaultTenant/orchestrator_/odata/QueueItems?$filter=Status eq ‘Failed’ and ReviewStatus eq ‘None’ and ProcessingExceptionType eq ‘Business’&$expand=QueueDefinition this SHOULD, in my perspective, filter by business exceptions, however, doing this results in a error as seen below:
{
“message”: “{"message":"Invalid OData query options.","errorCode":1000,"traceId":"00-12816877c6859459201b27aee7249f12-d825ef41d7b74baf-00"}”,
“level”: “Trace”,
“logType”: “User”,
“timeStamp”: “13:56:12”,
“jobId”: “8579b962-af5a-4f67-80cc-aa92c89ba7f0”,
“robotName”: “nmjvk-attended”,
“machineId”: 130,
“processVersion”: “1.0.2”,
“organizationUnitId”: 270
}
For Each queueItem: Object reference not set to an instance of an object.
Any help on this mater would be gladely appreciated