com.thingworx.types.primitives.InfoTablePrimitive cannot be cast to com.thingworx.types.InfoTable
Aug 30, 2018
09:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Aug 30, 2018
09:27 AM
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
Solved! Go to Solution.
Labels:
ACCEPTED SOLUTION
Accepted Solutions
Aug 30, 2018
10:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Aug 30, 2018
10:37 AM
2 REPLIES 2
Aug 30, 2018
10:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Aug 30, 2018
10:37 AM
don't cast it - use:
thingName.getPropertyValue("Info1").getValue()
Aug 31, 2018
02:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
