Error for deleting value stream created using CreateThing API in postman
Hi All,
I am using below details to generate value streams using postman.
http://XXX.XXX.XXX.XXX:8080/Thingworx/Resources/EntityServices/Services/CreateThing
{
"name": "MyStream",
"thingTemplateName": "ValueStream",
“description”: “<Description of the entity>”,
“projectName” : “MyProject”
}
The value stream gets generated, I use below service-call to enable the value stream from postman.
http://XXX.XXX.XXX.XXX:8080/Thingworx/Things/MyStream/Services/EnableThing
Now when I check in composer the value stream exist in the system however I couldn't delete it. I got below error -
Fail - Unable to delete thing: [ValueStream_MyStream] Unable to dispose thing: [ValueStream_MyStream] null
I checked and found the below link where user has mentioned seeing this error and there was no solution to it.
Here are some of my findings.
-There are no ghost entites checked it with getghostentities service and I am using Administrator credentials which has access to all the things and services.
- When I try to restart MyStream from composer, it throws an error showing invalid persistence provided (ThingworxPersistenceProvider) or when I try to set persistence provider using SetPersistenceProvider service it throws an error that thing is not running.
- To my surprise this persistence provider is the one which I have used so far and the fun part is, if I remove that persistence provider and re-attach it (manually) followed by saving the thing, I was able to delete it! This I have confirmed 10-15 times. I am using thingworx 9.1
Please let me know what to do about this?

