cancel
Showing results for 
Search instead for 
Did you mean: 

Get Item by ID doesnt work

jgregor4
Level 6
Hi,
I am trying to use the Get Item by ID work queue action (v6.10.2) however it does not appear to be working correctly.
I have an action to get all items with a certain Key - I then loop through the collection of Items ID's (with the correct queue name) yet when stepping over the action to Get Item by ID (to lock it and update the status) it isn't locking the item in the queue meaning the status update action fails.

Blue Prism is pulling the Item ID's itself into a collection so i dont understand why it then does not work correctly to Get Item by ID.
4 REPLIES 4

Hi James,

I've just attempted a test of the "Get Item by ID" action and I can't seem to replicate this behavior - can I check - what are the statuses of the items you're looking to "get" from the queue? Are they pending or have they been worked previously and so they're complete/exceptioned?

Regards,
Rob
Robert Nicklin Product Manager Blue Prism Warrington, England

Hi James,

If the item ID you are trying to retrieve is not in a Pending state, this action is bound to fail. As both 'Get Next Item' and 'Get Item By ID' only retrieve the pending state items by locking them for further use, hence changing the status to Locked state.

Please check the status of those Item ID's and let us know if they are in 'Pending' state or in some other state before you are executing this action.
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.

jgregor4
Level 6
There were only 2 pending items in the queue which I had obtained the ID's by using the Get Pending Items actions yet neither would get picked up using the get item by ID action. I changed the action to a regular Get Next Item action and Blue Prism would pick up and lock them so they were available to be locked but for some reason the get item by ID action doesnt want to work

I have this same problem in BP6.10.5. Interesting that under a dev environment  with no app server, the action WORKS FINE. But under the Prod setup with the App Server, the action exhibits exactly the same issue as stated by OP.

Any ideas??