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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

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

Velkumar
19-Tanzanite

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

ACCEPTED SOLUTION

Accepted Solutions
cdovholuk
12-Amethyst
(To:Velkumar)

don't cast it - use: 

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

 

View solution in original post

2 REPLIES 2
cdovholuk
12-Amethyst
(To:Velkumar)

don't cast it - use: 

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

 

Velkumar
19-Tanzanite
(To:cdovholuk)

Hello @cdovholuk,

 

Thank you. It works !

Announcements


Top Tags