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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Unable to delete Valuestream from Composer which was created via script

ranjank
14-Alexandrite

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

2 REPLIES 2

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.

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);

 

 

Top Tags