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

Unable to delete Valuestream from Composer which was created via script

Highlighted
Amethyst

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
Highlighted

Re: Unable to delete Valuestream from Composer which was created via script

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.

Highlighted

Re: Unable to delete Valuestream from Composer which was created via script

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

 

 

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!