Support Article
Locking error on clicking button that is configured to move case
SA-78646
Summary
Lock error occurs on clicking a button that is configured to move a case to an alternate stage.
Error Messages
Save, Delete or Commit has failed because lock "XXXX-WORK WO-999" is not held
Steps to Reproduce
- Create a button in a Review section with an action to execute the pxChangeStage to an alternate stage.
- Click the button.
Root Cause
The current configuration of the button used the below action:
Refresh Harness > pxChangeStage
This configuration does not work since the work object is not locked when the stage is changed.
Resolution
Perform the following local-change:
Configure the button to perform the below steps:
- Lock the work object.
- Change the stage.
- Commit the work object change.
- Refresh the harness.
Published August 19, 2019 - 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.