pyCommitError: LockGoneException

Errors:
pyCommitError:Error during checkRequiredLocks bean method call: code: SQLState: nested exception is: java.lang.RuntimeException: Problem during method invocation (checkRequiredLocks) Message:

In a submit button we have called an activity to save the data but I’m getting this error while trying to finish the assignments.

Failure Activity : Activity=FinishAssignment

@AnilK1848

In the tracer please verify that you have locked the work object, there is an option in the settings to enable visibility of when Pega gets and releases the locks. You can also check locks from the work management landing page in the settings.

In your custom code have you called the commit method anywhere, such as through the commitWithErrorHandling activity or directly calling commit? This will usually release the lock, preventing any further save.

@AnilK1848

Could you please skim the following Pega Support Articles relevant to LockGoneException error?

@JoeH9464 pizza tower

Thanks for your answer. My problem is solved