Unable to delete Valuestream from Composer which was created via script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Unable to delete Valuestream from Composer which was created via script
1) Below error is coming upon deletion:-
Fail - Unable to delete thing: [ValueStream_TestTSThing-GW] Unable to dispose thing: [ValueStream_TestTSThing-GW] null
2) Also provide snippet to delete Valuestream or any thing from Composer
- Labels:
-
Best Practices
-
Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello ranjank,
I have not seen this specific error with the root cause being a "null". This would seem to imply that the entity does not actually exist and that we may dealing with a Ghost Entity here. If possible I would recommend restarting ThingWorx to see if the Value Stream is no longer present. Should this be the case I would recommend having a look at CS198580 which explains the concept of Ghost Entities in more detail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
1. Check whether appropriate visibility permissions are present
2. You could use the DeleteThing snippet to delete a ValueStream
var params = {
name: "MyVS" /* THINGNAME */
};
// no return
Resources["EntityServices"].DeleteThing(params);
