Clearing Spec Table gives exception
I am trying to delete the rows from the Item ->compliance ->Specifications table. But this is throwing exception and not clearing any rows.
The alternative is to iterate through the Table Rows and delete rows one by one. But that might be time consuming. Do we know how to make this .clear() SDK API work?
----------------------------------------------------------------------------
Below is the code snippet used:
ITable specTable = newItem.getTable(ItemConstants.TABLE_SPECIFICATIONS);
if (!specTable.isEmpty()) { specTable.clear(); }
----------------------------------------------------------------------------
Exception thrown by .clear() line of code is as follows:
Caused by: Error code : 60104
Error message : See multiple root causes.
Root Cause exception : com.agile.common.client.value.BatchException: There are errors in this operations. There maybe invalid values. Please verify your data and try again.