Agents stop with the exception due to lock not obtained on the work object
Hello, After up gradation of our environment from 7.2.2 to 8.2.3 we are facing an issue in agents. Few agents are getting stopped with the following exception. "QueueForLockedTasksCannot obtain a lock on instance "class instance name xyz" , as Requestor B49PCEEHPSBHDKYQEZ0VELWNXT7QRGA7SA already has the lock". Kindly help us to resolve the issue. Thanks, S.Seetharaman
***Edited by Moderator Marissa to update platform capability tags****
Maybe you can just add a step to check if the lock can be taken if not exit the activity do nothing and wait. I'm just guessing if the lock is already held by another batch process it might be for a good reason.
Issue has been resolved by calling the "activity-clear-status" when using Obj-Open-By-Handle in the activity which the agent is referring. This will set the status as good, so that agent will not stop with the exception.