Skip to main content
17-Peridot
January 4, 2022
Question

deleting datatable entries through service

  • January 4, 2022
  • 1 reply
  • 1071 views

for(var j=0;j<oldTaskName_IT_copy.rows.length;j++){
     Things[productionPlannerDTName].DeleteDataTableEntries({
          values : oldTaskName_IT_copy[j]/* INFOTABLE */
     });
}

when i executes this code, iam getting an error - " JavaException: java.lang.Exception: Unable To Convert From com.thingworx.types.collections.ValueCollection to INFOTABLE ". How to solve this.

1 reply

24-Ruby III
January 4, 2022

 Hi,

 

There was a similar error earlier - "Extracting data from an infotable. Error: Unable To Convert From .ValueCollection to INFOTABLE": https://community.ptc.com/t5/ThingWorx-Developers/Extracting-data-from-an-infotable-Error-Unable-To-Convert-From/td-p/522208