Skip to main content
1-Visitor
September 19, 2017
Solved

Thingworx dataconnect error

  • September 19, 2017
  • 3 replies
  • 2117 views

Hello ,

      I Followed the Dataconnect artice and created a DAD by taking some values from kepserver by creating their respective Thing Template and things .

Also created the datashapes and services which worls fine .

The issue is when i execute the DAD it givess error in dataconnect-worker logs of no enum constant .

Also sometimes it gives error like "transformation has timeseries data but does not have an aggregate transformation applied]" when i apply the timeseries data in datasource .

when i dont it gives the no enum constant error .which doesn't creates the dataset at thingworx analytics builder.

Attaching the dataconnect logs file and my .csv created in thingworx storage

Kind Regards ,

Amar

Best answer by cmorfin

Hi Amar

The error

java.lang.IllegalArgumentException: No enum constant com.coldlight.rest.client.beans.FieldConfiguration.FieldConfigurationDataType.LONG

that you are receiving is because the datatype defined (LONG) is not a valid one for DataConnect.

Valid data types are: Boolean • Integer • Double • String

you will need to change the DAD datashape to use a valid data type to remove this error

Kind regards

Christophe

3 replies

cmorfin19-TanzaniteAnswer
19-Tanzanite
September 19, 2017

Hi Amar

The error

java.lang.IllegalArgumentException: No enum constant com.coldlight.rest.client.beans.FieldConfiguration.FieldConfigurationDataType.LONG

that you are receiving is because the datatype defined (LONG) is not a valid one for DataConnect.

Valid data types are: Boolean • Integer • Double • String

you will need to change the DAD datashape to use a valid data type to remove this error

Kind regards

Christophe

achaube1-VisitorAuthor
1-Visitor
September 20, 2017

Hello Christophe ,

                 Thanks for replying i changed all the properties datatypes to integer from long .now it gives a different error in dataconnect-transform logs shareing the file in the attachment .

Kind Regards ,

Amar

19-Tanzanite
September 20, 2017

Hi Amar

The error I see is this:

java.lang.NumberFormatException: For input string: "40.0"

which would make sense if you changed the data type to integer. 40.0 is not an integer .

You should use double for data type here.

Kind rgeards

Christophe