Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

This operation requires lock on the object before it can proceed

KCP-228

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

  1. Log in to the application
  2. Enter the required details
  3. 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:

  1. Save the DoSave activity in the application ruleset since it is an available rule
  2. Modify the DoSave activity to revert to the previous logic

or

Replace the DoSave activity with an alternative (For example, deferred Obj-Save).

Suggest Edit

Published December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us