Fetching outgoing dependencies, err: Unable To convert org.mozilla.javascript.UniqueTag to INFOTABLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Fetching outgoing dependencies, err: Unable To convert org.mozilla.javascript.UniqueTag to INFOTABLE
Trying to fetch the outgoing dependencies of a thing as an infotable using the GetOutgoingDependencies service in the PTC.Resource.RelationshipUtilities, but facing this error :
Solved! Go to Solution.
- Labels:
-
Coding
-
Troubleshooting
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @AV_10867476 ,
I'm not sure which version of TWX you were using but to find the below code to find outgoing dependencies of a thing and also try to print Ouput in variable of 'result' and make sure that Service Output basetype as 'Infotable'.
var thingName = 'YOURTHINGNAME';
let relData = Things[thingName].GetOutgoingDependencies({
maxItems: 500 /* NUMBER {"defaultValue":500} */
});
let result = relData ;// OUTPUT VARIABLE SHOULD BE IN 'result'
Thanks & Regards,
Arun C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @AV_10867476 ,
I'm not sure which version of TWX you were using but to find the below code to find outgoing dependencies of a thing and also try to print Ouput in variable of 'result' and make sure that Service Output basetype as 'Infotable'.
var thingName = 'YOURTHINGNAME';
let relData = Things[thingName].GetOutgoingDependencies({
maxItems: 500 /* NUMBER {"defaultValue":500} */
});
let result = relData ;// OUTPUT VARIABLE SHOULD BE IN 'result'
Thanks & Regards,
Arun C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks!