This operation requires lock on the object before it can proceed
LockRequired error occurs on submitting an assignment post updating Pega 8.2.2 to Pega 8.2.7.
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
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.
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
Replace the DoSave activity with an alternative (For example, deferred Obj-Save).