cancel
Showing results for 
Search instead for 
Did you mean: 

Exception while Mark Complete

Anonymous
Not applicable
Internal : The specified item was not locked by this business object
32030.png
What's this Error, Why ii's shown and how to solve it?

It occurs while mark complete stage 


------------------------------
Sanaa Fallah
------------------------------
1 BEST ANSWER

Best Answers

Rambo27
Level 8
Hi @Sanaa Fallah


Item that you're trying to update with new status is not locked by your process.

That could happen in many, many ways. For example:

  1. Item was already updated
  2. Item ID was overwritten with some different item ID
  3. Previous item has been marked as exception, and the process received a new item id, but it has not been locked. You cannot update a new item, because it has not been locked at the start of the process.
  4. The item has been deferred and that action unlocks item


You need to invoke the business object Work Queue's action Get Next Item in order to lock the current item. Only locked items can be marked as Exception.

32020.png
and before marking as exception, you just need to update the status and while marking exception there is one input parameter called keep locked need to set false
32021.png

Hope it helps you out to understand the error and you can resolve it .

------------------------------
Shikhar Mishra
RPA Lead
Infosys Pvt Ltd
Pune,India
------------------------------
Shikhar Mishra RPA Lead Infosys

View answer in original post

4 REPLIES 4

Rambo27
Level 8
Hi @Sanaa Fallah


Item that you're trying to update with new status is not locked by your process.

That could happen in many, many ways. For example:

  1. Item was already updated
  2. Item ID was overwritten with some different item ID
  3. Previous item has been marked as exception, and the process received a new item id, but it has not been locked. You cannot update a new item, because it has not been locked at the start of the process.
  4. The item has been deferred and that action unlocks item


You need to invoke the business object Work Queue's action Get Next Item in order to lock the current item. Only locked items can be marked as Exception.

32020.png
and before marking as exception, you just need to update the status and while marking exception there is one input parameter called keep locked need to set false
32021.png

Hope it helps you out to understand the error and you can resolve it .

------------------------------
Shikhar Mishra
RPA Lead
Infosys Pvt Ltd
Pune,India
------------------------------
Shikhar Mishra RPA Lead Infosys

Anonymous
Not applicable
Hi Shikhar,

I already invoked 'Get Next Item' in order to fetch the item from the queue and set 'Keep locked' and 'Retry' to False in Mark Exception but the Error keeps occurring, 

Does 'Get Next Item' lock the item Data by itself?


------------------------------
Sanaa Fallah
------------------------------

Anonymous
Not applicable

@devneetmohanty07

@PabloSarabia

Could you help with this issue please?

Thanks in advance​​



------------------------------
Sanaa Fallah
------------------------------

Hi @Sanaa Fallah

Could you share with us your complete diagram?

Sounds like you are getting the item with another Object.


Bye 🙂


------------------------------
Pablo Sarabia
Architect
Altamira Assets Management
Madrid
634726270
------------------------------