<?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 joins with Pro using arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/remove-joins-with-pro-using-arcpy/m-p/1072278#M61486</link>
    <description>&lt;P&gt;what do you mean by&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/413050"&gt;@mody_buchbinder&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I do not see this method in Pro&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Thu, 24 Jun 2021 20:11:10 GMT</pubDate>
    <dc:creator>NABAZGHARIBMOHAMMED</dc:creator>
    <dc:date>2021-06-24T20:11:10Z</dc:date>
    <item>
      <title>Remove joins with Pro using arcpy</title>
      <link>https://community.esri.com/t5/python-questions/remove-joins-with-pro-using-arcpy/m-p/1068814#M61376</link>
      <description>&lt;P&gt;I am trying to remove joins from a layer using arcpy.&lt;/P&gt;&lt;P&gt;When I type in the python window the line:&lt;/P&gt;&lt;P&gt;arcpy.management.RemoveJoin("lyr1")&lt;/P&gt;&lt;P&gt;it works fine and the layer in the TOC does not have joins any more.&lt;/P&gt;&lt;P&gt;Then I tried in python that runs from a tool:&lt;/P&gt;&lt;P&gt;map1 = arcpy.mp.ArcGISProject("current").listMaps()[2]&lt;BR /&gt;lyr = map1.listLayers()[0]&lt;BR /&gt;arcpy.management.RemoveJoin(lyr)&lt;/P&gt;&lt;P&gt;It does not return any error but does not work (joins still exists).&lt;/P&gt;&lt;P&gt;Then I understood that I need to take the result from the tool:&lt;/P&gt;&lt;P&gt;updateLayer = arcpy.management.RemoveJoin(lyr)[0]&lt;/P&gt;&lt;P&gt;It is working but then I have to try to insert the layer to the original position (it is not 0 as my example it is inside some groups) and remove the original.&lt;/P&gt;&lt;P&gt;Is there any simple way to make it works in one command just like when I type it in the python window?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 10:50:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-joins-with-pro-using-arcpy/m-p/1068814#M61376</guid>
      <dc:creator>mody_buchbinder</dc:creator>
      <dc:date>2021-06-16T10:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Remove joins with Pro using arcpy</title>
      <link>https://community.esri.com/t5/python-questions/remove-joins-with-pro-using-arcpy/m-p/1071407#M61457</link>
      <description>&lt;P&gt;after remove join, refresh TOC, see if it works.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;arcpy.RefreshTOC()&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Jun 2021 11:36:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-joins-with-pro-using-arcpy/m-p/1071407#M61457</guid>
      <dc:creator>NABAZGHARIBMOHAMMED</dc:creator>
      <dc:date>2021-06-23T11:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Remove joins with Pro using arcpy</title>
      <link>https://community.esri.com/t5/python-questions/remove-joins-with-pro-using-arcpy/m-p/1071871#M61472</link>
      <description>&lt;P&gt;I do not see this method in Pro&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 07:07:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-joins-with-pro-using-arcpy/m-p/1071871#M61472</guid>
      <dc:creator>mody_buchbinder</dc:creator>
      <dc:date>2021-06-24T07:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Remove joins with Pro using arcpy</title>
      <link>https://community.esri.com/t5/python-questions/remove-joins-with-pro-using-arcpy/m-p/1072278#M61486</link>
      <description>&lt;P&gt;what do you mean by&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/413050"&gt;@mody_buchbinder&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I do not see this method in Pro&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 24 Jun 2021 20:11:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-joins-with-pro-using-arcpy/m-p/1072278#M61486</guid>
      <dc:creator>NABAZGHARIBMOHAMMED</dc:creator>
      <dc:date>2021-06-24T20:11:10Z</dc:date>
    </item>
  </channel>
</rss>

