Skip to main content
19-Tanzanite
August 30, 2018
Solved

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

  • August 30, 2018
  • 2 replies
  • 1659 views

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

Best answer by cdovholuk

don't cast it - use: 

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

 

2 replies

cdovholuk5-Regular MemberAnswer
5-Regular Member
August 30, 2018

don't cast it - use: 

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

 

Velkumar19-TanzaniteAuthor
19-Tanzanite
August 31, 2018

Hello @cdovholuk,

 

Thank you. It works !