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:
- Add obj-refresh-and-lock method on the work page.
- Perform obj-save to acquire the lock.
Published October 13, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.