Error "java.lang.ArrayIndexOutOfBoundsException: 1" is reported when attempting to create a dataset in ThingWorx Analytics
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
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 []