Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unable to update custom Data tables with Allow Locking set

SA-20397

Summary



Unable to update or save data table entries where Allow Locking is selected in data classes.

Error Messages



Save, delete or Commit has failed because lock is not held

Steps to Reproduce



1. Open a data table record.
2. Edit the instance.
3. Click Save.

Root Cause



An issue in the custom application code or rules:

Class definition of the data class of the custom data table has Allow Locking selected.
@baseclass.save is called for the save, and it fails as obj-open-by-handle does not have Lock checkbox selected.

Resolution



1. Save As the @baseclass.save activity into custom Data class, and enable Lock in Obj-Open-By-Handle method.
2. Remove the Allow Locking checkbox, which is selected in Locking tab of the Data class.
Suggest Edit

Published March 2, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us