Hi guys,
I am trying to get a transaction list with ‘odata/QueueItems’. The request works just fine but when I specify the queue ID it gives me a 1002 error.
I am quiet sure the Queue ID is correct as I am getting it with “odata/QueueProcessingRecords/UiPathODataSvc.RetrieveQueuesProcessingStatus” which works just fine.
I believe, odata/QueueItems fetches the list of queue items and but not one. So giving a single queue item name as string is not correct. Try sending that one as a list (list containing only 1 queue item name).
The id number in parenthesis (in my cases ‘6’) should give me the detail regarding this specific queue. Unfortunately it shows 1002 error instead, I am positive the queue ID is correct.
Do you happen to have any further suggestion?
Many thanks
Thank you Sonali,
I called the API as advised, I got the same ID I was entering into the system despite it when I call
“odata/QueueItems(id)” >> “odata/QueueItems(12)”
but I am keep receiving the 404 Error.
Can you try your solution now with this id (12) as I recall earlier you were trying to use queueId as “6” which is why error was being thrown to you as “queue item doesn’t exists”.
I believe you should be able to run the test if you use id as 12 now.
I have various queues, I just happened to search for this one ^^
Another thing I noticed is that when I use the general ‘odata/QueueItems’ call, I get the full queue transactions list but the data in is delayed by few hours.
For example when I run my code from 8AM till 5PM and at the end of the day I generate the report using ‘odata/QueueItems’, the report will include only transactions that were processed in the morning. When I run the same code the next day, the report will be full…
Thank you @postwick
Indeed, but how come that it happens only when I call a specific queue with ‘odata/QueueItems(id)’ ?
When I use the general version without queue specification ‘odata/QueueItems’ I get the list of all transactions in all queues.
Hi @postwick,
Thank you for the suggestion, it helped me realize that the ‘id’ in odata/QueueItems(id) stands for the transaction and not for the queue…
Additionally I learned that this function is getting “only” 1000 transactions, so I need to find a different way how to generate the queue report in UiPath. Pity