Support Article
Optimistic locking behaves incorrectly
Summary
A case type is configured with Optimistic locking. However, the conflict message displays incorrectly whenever it is updated by a background process.
Error Messages
Not Applicable
Steps to Reproduce
- Enable the Optimistic locking for a case type
- Create a case of the same case type and keep the assignment open
- Make a few changes to the case through a background process (not manually, but through an activity using the Queue Processor)
- Submit the case on Pega once the background process is complete. No error occurs though 'The update was performed by a Queue Processor' message displays on the History tab
Root Cause
An issue in the client application code or rules. The pxUpdateDateTime property is not set in the Queue Processor activity. This property is checked by the pzShowConflicts activity.
Resolution
Perform the following local-change:
Set the pxUpdateDateTime property in the Queue Processor activity.
Tags:
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.