<?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: Remove project dependency in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Remove-project-dependency/m-p/871992#M62144</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure why, but this issue doesn't seem to occur anymore.&lt;/P&gt;&lt;P&gt;I can't say that we had done any specific changes because of this issue. But perhaps it had been fixed at some point while building the project.&lt;/P&gt;&lt;P&gt;So, sorry but there will likely not be a good resolution for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2023 07:25:18 GMT</pubDate>
    <dc:creator>jensc</dc:creator>
    <dc:date>2023-04-27T07:25:18Z</dc:date>
    <item>
      <title>Remove project dependency</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Remove-project-dependency/m-p/864153#M61692</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if there is any way to remove a project dependency programmatically in Thingworx?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The situation:&lt;/P&gt;&lt;P&gt;We have one project (Project A) that creates projects (Project B-N) and when it does this, the original project (A) gets this newly created project (B-N) as a dependency.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not quite sure why it gets the created project (B-N) as a dependency though, I have asked my colleagues about it for now to cover all of my bases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in the meantime, when we want to delete the entire newly created project (B-N), we can delete everything within the project, things and such, but not the project itself because of the dependency on it in project (A).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas in regards to this?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 08:55:01 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Remove-project-dependency/m-p/864153#M61692</guid>
      <dc:creator>jensc</dc:creator>
      <dc:date>2023-03-24T08:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Remove project dependency</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Remove-project-dependency/m-p/864293#M61701</link>
      <description>&lt;P&gt;The easy answer is to go to the "General Information" tab of the project and you'll see a section called "Project Dependencies." The should a box with the&amp;nbsp; dependent project and an X next to the name. If that doesn't work try getting rid of any tags associated with the project, as well. If you're looking for a code solution, you might be able to use the "UpdateProjectDependencies" service in all projects to remove an irrelevant dependency.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 16:01:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Remove-project-dependency/m-p/864293#M61701</guid>
      <dc:creator>Ike@ACE</dc:creator>
      <dc:date>2023-03-24T16:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove project dependency</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Remove-project-dependency/m-p/864534#M61704</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I need a way to do this in my code and it seems like the "UpdateProjectDependencies" service just does another check if all the dependencies still exist.&lt;/P&gt;&lt;P&gt;I did try to use the "ListExternalDependencies" service. This listed a whole bunch of dependencies. But what I found so strange was that when running it for the "parent" project, it listed dependencies where the child project was using something from the parent project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can understand that the child project would have that dependency. But why does the parent project have it as well?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After clearing one of my child projects and running the service on it again, I found:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jensc_0-1679901826027.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/78802iA83E6A1899E4BA37/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jensc_0-1679901826027.png" alt="jensc_0-1679901826027.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With the "whereUsed" as:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jensc_1-1679901862420.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/78803iA8480A05AF0C5CD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jensc_1-1679901862420.png" alt="jensc_1-1679901862420.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it saying that we have a dependency to the "parent" projects, and because of that dependency we can't delete the project?&lt;/P&gt;&lt;P&gt;I'm a bit lost here...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 07:26:27 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Remove-project-dependency/m-p/864534#M61704</guid>
      <dc:creator>jensc</dc:creator>
      <dc:date>2023-03-27T07:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Remove project dependency</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Remove-project-dependency/m-p/868203#M61864</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/344529"&gt;@jensc&lt;/a&gt;&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We're trying to understand the scenario that would result in the requirement to perform the cleanup. &amp;nbsp;If you are able to eliminate that issue, there would not be a need to perform the cleanup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please provide details of your use case? &amp;nbsp;It would also be helpful to know which version of ThingWorx you are running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Sharon&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 18:12:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Remove-project-dependency/m-p/868203#M61864</guid>
      <dc:creator>slangley</dc:creator>
      <dc:date>2023-04-11T18:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Remove project dependency</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Remove-project-dependency/m-p/868275#M61867</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/183931"&gt;@slangley&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are building an application that will create site specific "child" projects.&lt;/P&gt;&lt;P&gt;At times these projects might have to be cleaned up (removed), and for this we have built a service to remove all entities within the project and lastly delete the project entity itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I don't really get is how after removing all entities in the project, it can still have dependencies on the parent project.&lt;/P&gt;&lt;P&gt;I think it was PTC that built a utility project for us (or in general?) that also has a kind of project cleanup service which I haven't tested for this purpose yet.&lt;/P&gt;&lt;P&gt;But it might work better as I think it uses some other API's instead of the "normal" - "DeleteX" service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So perhaps this isn't such a huge issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are running Thingworx 9.3.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 05:56:25 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Remove-project-dependency/m-p/868275#M61867</guid>
      <dc:creator>jensc</dc:creator>
      <dc:date>2023-04-12T05:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remove project dependency</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Remove-project-dependency/m-p/871992#M62144</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure why, but this issue doesn't seem to occur anymore.&lt;/P&gt;&lt;P&gt;I can't say that we had done any specific changes because of this issue. But perhaps it had been fixed at some point while building the project.&lt;/P&gt;&lt;P&gt;So, sorry but there will likely not be a good resolution for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 07:25:18 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Remove-project-dependency/m-p/871992#M62144</guid>
      <dc:creator>jensc</dc:creator>
      <dc:date>2023-04-27T07:25:18Z</dc:date>
    </item>
  </channel>
</rss>

