Posts

Showing posts from March, 2022

Save, Delete or Commit has failed because lock "XXX" is not held

Image

This is what I do when there is a problem with the Lock. Tipically, the error message is as follows:

Save, Delete or Commit has failed because lock "XXX" is not held

Remove all Datapages programmatically

Use the following function:

@(Pega-RULES:DeclarePages).pzDeleteAllInstancesOfDeclarativePage(tools,D_MyDataPage)

That's all!