<?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>idea Remove all joins programatically in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/remove-all-joins-programatically/idi-p/974557</link>
    <description>&lt;P&gt;see &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000066000000" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000066000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;would be nice to have the option of removing ALL joins from a table or feature class programatically just like you can from the GUI instead of having to remove them individually.&lt;BR /&gt;&lt;BR /&gt;Instead of passing in the name of the join as a string, use a '*' or '#' to represent all.&lt;/P&gt;&lt;!--  content transformation source ID: 08730000000bvH2  --&gt;</description>
    <pubDate>Mon, 08 Nov 2021 22:27:37 GMT</pubDate>
    <dc:creator>ThomasTri1</dc:creator>
    <dc:date>2021-11-08T22:27:37Z</dc:date>
    <item>
      <title>Remove all joins programatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/remove-all-joins-programatically/idi-p/974557</link>
      <description>&lt;P&gt;see &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000066000000" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000066000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;would be nice to have the option of removing ALL joins from a table or feature class programatically just like you can from the GUI instead of having to remove them individually.&lt;BR /&gt;&lt;BR /&gt;Instead of passing in the name of the join as a string, use a '*' or '#' to represent all.&lt;/P&gt;&lt;!--  content transformation source ID: 08730000000bvH2  --&gt;</description>
      <pubDate>Mon, 08 Nov 2021 22:27:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/remove-all-joins-programatically/idi-p/974557</guid>
      <dc:creator>ThomasTri1</dc:creator>
      <dc:date>2021-11-08T22:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all joins programatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/remove-all-joins-programatically/idc-p/974558#M10177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a little function that does this. You could use this in an arcpy.mapping script or with the Calculate Value tool in Model Builder. Another approach I've used to drop joins in scripting is to delete the layer or table view and recreate it. (This approach may not work well in Model Builder or a script that operates on an existing layer as it would delete the layer from the map!)&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;RemoveAllJoins&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tbl&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"""Remove all joins from a layer or table view"""&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; flds &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;f&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; f &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFields&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tbl&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; wk &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dirname&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tbl&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;catalogPath&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; joins &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ParseFieldName&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;f&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; wk&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;split&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;", "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; f &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; flds&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; joins &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; list&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;set&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;joins&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# unique the list&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; joins&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"(null)"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"no join active"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# remove base table name from list and remove all joins&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; joins&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;remove&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tbl&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;baseName&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; j &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; joins&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;RemoveJoin_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tbl&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; j&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Removed join {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;j&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt;
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 11:54:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/remove-all-joins-programatically/idc-p/974558#M10177</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-12T11:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all joins programatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/remove-all-joins-programatically/idc-p/1115028#M17567</link>
      <description>&lt;P&gt;For anyone referring back to this page, calling &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/remove-join.htm" target="_blank" rel="noopener"&gt;&lt;FONT face="courier new,courier"&gt;arcpy.management.RemoveJoin&lt;/FONT&gt;&lt;/A&gt; without the optional &lt;FONT face="courier new,courier"&gt;join_name&lt;/FONT&gt; parameter will remove all joins from the &lt;SPAN class=""&gt;feature layer&lt;/SPAN&gt; or &lt;SPAN class=""&gt;table view&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;RemoveJoin&lt;/FONT&gt; will throw &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-00226-00250-000229.htm" target="_blank" rel="noopener"&gt;ERROR 000229&lt;/A&gt; if no join is present, so be sure to catch &lt;FONT face="courier new,courier"&gt;arcpy.ExecuteError&lt;/FONT&gt; if you want to handle the exception.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 20:32:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/remove-all-joins-programatically/idc-p/1115028#M17567</guid>
      <dc:creator>skykasko</dc:creator>
      <dc:date>2021-11-08T20:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all joins programatically - Status changed to: In Product Plan</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/remove-all-joins-programatically/idc-p/1146797#M18782</link>
      <description>&lt;P&gt;As stated above, running Remove Join with no join name specified will result in removing all joins, in ArcGIS Pro 3.0.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 00:55:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/remove-all-joins-programatically/idc-p/1146797#M18782</guid>
      <dc:creator>DrewFlater</dc:creator>
      <dc:date>2022-02-23T00:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all joins programatically - Status changed to: Implemented</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/remove-all-joins-programatically/idc-p/1186230#M20053</link>
      <description>&lt;P&gt;See&amp;nbsp;&lt;LI-MESSAGE title="Ideas in ArcGIS Pro 3.0" uid="1183725" url="https://community.esri.com/t5/arcgis-ideas-blog/ideas-in-arcgis-pro-3-0/m-p/1183725#U1183725" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;for&amp;nbsp;all of the other ideas you can look forward to when you upgrade.&lt;/P&gt;&lt;P&gt;Also be sure to check out the What's New documentation:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/get-started/whats-new-in-arcgis-pro.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/get-started/whats-new-in-arcgis-pro.htm&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 19:16:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/remove-all-joins-programatically/idc-p/1186230#M20053</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2022-06-24T19:16:31Z</dc:date>
    </item>
  </channel>
</rss>

