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

Obj-Delete methods truncates the pzInsKey and deletion fails

SA-19630

Summary



Unable to delete a row in a data table. This was notices by the tracer in the out-of-the-box @baseclass. The Delete activity, when the Obj-Delete method step ends the pzInsKey of the selected row, is truncated. Hence, deletion fails.

Error Messages



Not Applicable

Steps to Reproduce

  1. Create a Data Table.
  2. Add some rows of records.
  3. From the Edit List rule remove the Key property.
  4. Delete a row from the out-of-the-box list editor button.
  5. Watch the tracer for the Obj-Delete step. 

 

Root Cause



The class key property was removed from the Edit List rule of the Data Table (Data class). It does not appear during the Append of the table records, and is not entered manually.
Thus, the class key property does not appear in the Clipboard when record deletion is performed. The Obj-Delete method constructs the pzInsKey on the fly by appending the pxObjClass and the class key property. It failed because the mentioned key property was not in the page.
This displayed an incomplete pzInsKey during this method execution.

Resolution



Include the class key property in the Edit List rule of the concerned Data class.

Published February 18, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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