Skip to main content
Aug 30, 2018 1:27 PM UTC
Solved

com.thingworx.types.primitives.InfoTablePrimitive cannot be cast to com.thingworx.types.InfoTable

Hello all,

 

I'm trying to read Infotable property using GetPropertyValue in Extension. When I run service, I'm getting error as "com.thingworx.types.primitives.InfoTablePrimitive cannot be cast to com.thingworx.types.InfoTable" . Below is my code,

InfoTable propertyValue = (InfoTable) thingName.getPropertyValue("Info1");

Can any one help me to solve this issue ?

 

Thanks,

VR

cdovholukAnswer
Aug 30, 2018 2:37 PM UTC

don't cast it - use: 

thingName.getPropertyValue("Info1").getValue()

 

2 replies

cdovholukAnswer
Aug 30, 2018 2:37 PM UTC

don't cast it - use: 

thingName.getPropertyValue("Info1").getValue()

 

VelkumarAuthor
Aug 31, 2018 6:12 AM UTC

Hello @cdovholuk,

 

Thank you. It works !