cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Level 9

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: com.thingworx.types.primitives.InfoTablePrimitive cannot be cast to com.thingworx.types.InfoTabl

don't cast it - use: 

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

 

2 REPLIES 2
Highlighted

Re: com.thingworx.types.primitives.InfoTablePrimitive cannot be cast to com.thingworx.types.InfoTabl

don't cast it - use: 

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

 

Re: com.thingworx.types.primitives.InfoTablePrimitive cannot be cast to com.thingworx.types.InfoTabl

Hello @cdovholuk,

 

Thank you. It works !