Support Article
This operation requires lock on the object before it can proceed
Summary
LockRequired error occurs on submitting an assignment post updating Pega 8.2.2 to Pega 8.2.7.
Error Messages
This operation requires a lock on the object before it can proceed.
Steps to Reproduce
- Log in to the application
- Enter the required details
- Click the Submit button
Root Cause
The error message is configured at step 7 of the DoSave activity activity. The activity is modified and it checks the lock update time. In this case, the work object is initially created as a temporary work object. When the assignment is completed, pxPersistCase is invoked to persist the work object and the flow continues to another utility step where an activity invokes the DoSave activity. The lock is not yet obtained in this scenario. Hence, the error occurs.
Resolution
Perform the following local-change:
- Save the DoSave activity in the application ruleset since it is an available rule
- Modify the DoSave activity to revert to the previous logic
or
Replace the DoSave activity with an alternative (For example, deferred Obj-Save).
Tags:
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.