Support Article
LockGoneException in log file when REST service executes
SA-73883
Summary
LockGoneException messages are generated in the log when executing a REST Service.
Error Messages
com.pega.pegarules.pub.database.LockGoneException: Save, Delete or Commit has failed because lock "ORG-WORK US-XXXXXXXXX" is not held
Steps to Reproduce
Execute the REST service such that it goes through an activity which calls the ResumeFlow.
Root Cause
An issue in the custom application code or rules.
There are calls to the ResumeFlow that do not have the calledFromServiceLevel option checked. Hence, a commit occurs in the ResumeFlow and there is a commit later in the REST service activity.
Resolution
Perform the following local-change:
Check the calledFromServiceLevel option when calling ResumeFlow.
Published May 12, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.