Support Article

Cannot write to DB for "insert/overwrite" option for dataset



Cannot write to the database for "insert or overwrite" option for dataset.

Error Messages Save, Delete or Commit has failed because lock
"myClass /SALES/DEPOSIT/8038" is not held

Steps to Reproduce

Run the dataflow-execute step in an activity which references the data flow that calls the dataset.

Root Cause

An issue in the custom application code or rules.

This is a DSM application, and the classes should not use the Pega Platform lock manager. The class of interest incorrectly uses locking.


Perform the following local-change:

Clear the "allow locking" checkbox on the class rule.

Published May 12, 2017 - Updated June 5, 2017

Have a question? Get answers now.

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