Article - CS321877

Error "java.lang.ArrayIndexOutOfBoundsException: 1" is reported when attempting to create a dataset in ThingWorx Analytics

Modified: 06-Mar-2020   


Applies To

  • ThingWorx Analytics 8.4

Description

  • Upon upload of a specific dataset (csv + json) either via ThingWorx Analytics Builder or AnalyticsServer_DataThing, following error occurs
Exception in task 0.0 in stage 1.0 (TID 1)
java.lang.ArrayIndexOutOfBoundsException: 1
    at com.thingworx.analytics.ccc.data.DataSet$CachedRow.get(DataSet.java:373)
    at com.thingworx.analytics.ccc.data.DataSet$BakedCol.apply(DataSet.java:490)
    at com.thingworx.analytics.ccc.data.DataSet$BakedCol.apply(DataSet.java:476)
    at com.thingworx.analytics.ccc.data.DataSet$BakedRow.retrieve(DataSet.java:525)
    at com.thingworx.analytics.ccc.data.DataSet$ARow.get(DataSet.java:242)
    at com.thingworx.analytics.ccc.data.DataSet$LazyCachedRow.get(DataSet.java

 
  • Attempting to infer metadata in ThingWorx Analytics Builder reports

java.lang.IllegalArgumentException: One of the data rows contains [0] columns which does not match the number of columns in the header row. The header row contains the following [XXX] columns: ...  The data row in question contains the following data []
This is a printer-friendly version of Article 321877 and may be out of date. For the latest version click CS321877