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
- Create a Data Table.
- Add some rows of records.
- From the Edit List rule remove the Key property.
- Delete a row from the out-of-the-box list editor button.
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.