<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error for deleting value stream created using CreateThing API in postman in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/716904#M50894</link>
    <description>&lt;P&gt;Did you do EnableThing and RestartThing from REST client itself or did it manually from composer after creating the thing ?&lt;/P&gt;</description>
    <pubDate>Thu, 04 Mar 2021 14:52:04 GMT</pubDate>
    <dc:creator>mnarang</dc:creator>
    <dc:date>2021-03-04T14:52:04Z</dc:date>
    <item>
      <title>Error for deleting value stream created using CreateThing API in postman</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/716844#M50882</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using below details to generate value streams using postman.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://XXX.XXX.XXX.XXX:8080/Thingworx/Resources/EntityServices/Services/CreateThing" target="_blank" rel="noopener"&gt;http://XXX.XXX.XXX.XXX:8080/Thingworx/Resources/EntityServices/Services/CreateThing&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;"name": "MyStream",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;"thingTemplateName": "ValueStream",&lt;/P&gt;
&lt;P&gt;“description”:&amp;nbsp; “&amp;lt;Description of the entity&amp;gt;”,&lt;/P&gt;
&lt;P&gt;“projectName” : “MyProject”&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;The value stream gets generated, I use below service-call to enable the value stream from postman.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://XXX.XXX.XXX.XXX:8080/Thingworx/Things/MyStream/Services/EnableThing" target="_blank" rel="noopener"&gt;http://XXX.XXX.XXX.XXX:8080/Thingworx/Things/MyStream/Services/EnableThing&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now when I check in composer the value stream exist in the system however I couldn't delete it. I got below error -&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Fail - Unable to delete thing: [ValueStream_MyStream] Unable to dispose thing: [ValueStream_MyStream] null&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I checked and found the below link where user has mentioned seeing this error and there was no solution to it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-delete-Valuestream-from-Composer-which-was-created-via/m-p/667936#M45363" target="_blank" rel="noopener"&gt;https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-delete-Valuestream-from-Composer-which-was-created-via/m-p/667936#M45363&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some of my findings.&lt;/P&gt;
&lt;P&gt;-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.&lt;/P&gt;
&lt;P&gt;- 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.&lt;/P&gt;
&lt;P&gt;- 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&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know what to do about this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 11:11:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/716844#M50882</guid>
      <dc:creator>SO_9699370</dc:creator>
      <dc:date>2021-03-04T11:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error for deleting value stream created using CreateThing API in postman</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/716852#M50885</link>
      <description>&lt;P&gt;When you create your value stream thing through REST, pass your persistence provider in the body along with other parameters like:&lt;/P&gt;
&lt;P&gt;"persistenceProvider": "ThingworxPersistenceProvider"&lt;/P&gt;
&lt;P&gt;Once you get 200 for create thing, then execute EnableThing and RestartThing from REST. This way you should not face below issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 11:59:04 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/716852#M50885</guid>
      <dc:creator>mnarang</dc:creator>
      <dc:date>2021-03-04T11:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error for deleting value stream created using CreateThing API in postman</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/716853#M50886</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/374342"&gt;@SO_9699370&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you create a value stream via postman Persistence provider is not provided by default. If you go to composer and open the newly created VS, it asks you to add to persistence provider, without adding it you cannot delete or edit the thing and that's when you get the error &lt;SPAN&gt;Unable to dispose thing&lt;/SPAN&gt;. Mentioned the persistence provider in the body of json when creating the VS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sachin Sharma&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 12:02:03 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/716853#M50886</guid>
      <dc:creator>SachinSharma</dc:creator>
      <dc:date>2021-03-04T12:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error for deleting value stream created using CreateThing API in postman</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/716902#M50892</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/314625"&gt;@SachinSharma&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/275134"&gt;@mnarang&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your input, This time I gave the persistence provider in the body (please check below). Then I enabled and restarted the thing, still no luck. While trying to delete manually it gave the error - "&lt;SPAN&gt;[test1] Unable to dispose thing: [test1] null". I got 200OK for all the services I fired in postman.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"name"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"test1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"thingTemplateName"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"ValueStream"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"persistenceProvider"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"ThingworxPersistenceProvider"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"projectName"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"tProject"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Kind Regards&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;SO&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Mar 2021 14:47:36 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/716902#M50892</guid>
      <dc:creator>SO_9699370</dc:creator>
      <dc:date>2021-03-04T14:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error for deleting value stream created using CreateThing API in postman</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/716904#M50894</link>
      <description>&lt;P&gt;Did you do EnableThing and RestartThing from REST client itself or did it manually from composer after creating the thing ?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 14:52:04 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/716904#M50894</guid>
      <dc:creator>mnarang</dc:creator>
      <dc:date>2021-03-04T14:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error for deleting value stream created using CreateThing API in postman</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/717137#M50920</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/275134"&gt;@mnarang&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did it from REST call using postman.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;SO&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 12:18:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/717137#M50920</guid>
      <dc:creator>SO_9699370</dc:creator>
      <dc:date>2021-03-05T12:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error for deleting value stream created using CreateThing API in postman</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/717358#M50942</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/374342"&gt;@SO_9699370&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a new VS with same JSON and then execute EnableThing and RestartThing, all from REST client. Now, open the VS in composer and check if&amp;nbsp;Persistence Provider field is blank or not under General Information tab. If there are no pending action items in To Do section&amp;nbsp;&lt;SPAN&gt;then try to delete the VS and if an error still occurs then please provide the application logs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SachinSharma_1-1615188006842.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/38564i3A516029CDAD2096/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SachinSharma_1-1615188006842.png" alt="SachinSharma_1-1615188006842.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sachin&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Mar 2021 07:22:18 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/717358#M50942</guid>
      <dc:creator>SachinSharma</dc:creator>
      <dc:date>2021-03-08T07:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error for deleting value stream created using CreateThing API in postman</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/717442#M50957</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/314625"&gt;@SachinSharma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I went as per you suggestion followed the below steps -&lt;/P&gt;
&lt;P&gt;1. Created VS (My Stream) with persistence provider defined in the body&lt;/P&gt;
&lt;P&gt;2. Enabled the thing&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Restarted the thing&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the above step were done with Postman.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As per your input I checked todo list there was nothing there (See below screen shot)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SO_9699370_0-1615213176134.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/38581iE1DDFB8F68F7729E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SO_9699370_0-1615213176134.png" alt="SO_9699370_0-1615213176134.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;While trying to delete this thing I got an error. I am attaching logs for your reference.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps. Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;SO&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 14:21:43 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/717442#M50957</guid>
      <dc:creator>SO_9699370</dc:creator>
      <dc:date>2021-03-08T14:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error for deleting value stream created using CreateThing API in postman</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/717542#M50963</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/374342"&gt;@SO_9699370&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I followed the exact same steps on my 9.1 instance and i am able to delete the VS without any error. Can you try restarting tomcat once and then try to delete the value stream and see if it works?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sachin&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 06:17:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/717542#M50963</guid>
      <dc:creator>SachinSharma</dc:creator>
      <dc:date>2021-03-09T06:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error for deleting value stream created using CreateThing API in postman</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/717552#M50965</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/314625"&gt;@SachinSharma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I followed your steps and restarted the tomcat but still can't delete it. Got the same null error. For information I am using postgres as my persistence provider.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;SO&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 07:06:14 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/717552#M50965</guid>
      <dc:creator>SO_9699370</dc:creator>
      <dc:date>2021-03-09T07:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error for deleting value stream created using CreateThing API in postman</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/717601#M50971</link>
      <description>&lt;P&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/374342"&gt;@SO_9699370&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I reviewed the logs and noticed that you are trying to delete the VS logged in with user Swarajo.&lt;/P&gt;
&lt;P&gt;Can you try logging in with Administrator user and check if you still see the same behavior?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sachin&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 10:02:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/717601#M50971</guid>
      <dc:creator>SachinSharma</dc:creator>
      <dc:date>2021-03-09T10:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error for deleting value stream created using CreateThing API in postman</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/718054#M51008</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/314625"&gt;@SachinSharma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried deleting the stream using administrator credentials of thingworx, but I got the same null error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;SO&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 07:28:14 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-for-deleting-value-stream-created-using-CreateThing-API-in/m-p/718054#M51008</guid>
      <dc:creator>SO_9699370</dc:creator>
      <dc:date>2021-03-11T07:28:14Z</dc:date>
    </item>
  </channel>
</rss>

