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

CommitWithErrorHandling activity fails when no lock is held

SA-64292

Summary



CommitWithErrorHandling activity fails when the work object does not have a lock.


Error Messages



Database-LockFailure-LockLost <<pzInsKey of the work object>>


Steps to Reproduce



Invoke the CommitWithErrorHandling activity from a custom activity.


Root Cause



The work page lock was not held before saving and invoking the CommitWithErrorHandling activity.


Resolution



Perform the following local-change:
  1. Add obj-refresh-and-lock method on the work page. 
  2. Perform obj-save to acquire the lock.
Suggest Edit

Published October 13, 2018 - Updated October 8, 2020

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