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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

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

Velkumar
18-Opal

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
cdovholuk
6-Contributor
(To:Velkumar)

don't cast it - use: 

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

 

View solution in original post

2 REPLIES 2
cdovholuk
6-Contributor
(To:Velkumar)

don't cast it - use: 

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

 

Hello @cdovholuk,

 

Thank you. It works !

Top Tags