<?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: Problem with running a Python-Add-In twice in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62583#M5070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then once the join is made, you will have to implement the code example in the Copy features tool to save the combined result to a new shapefile.&amp;nbsp; I would also recommend that you then remove the join using the code from the remove join tool to remove the join, in case you wish to join another file to the original shapefile and repeat the process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2015 10:20:42 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2015-04-27T10:20:42Z</dc:date>
    <item>
      <title>Problem with running a Python-Add-In twice</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62578#M5065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a problem with running a Python-Add-In twice in one ArcMap-Project. During the first use of the Add-In a join between a Shape-File and another DBase-File is created. Using the Add-In a second time the join does not gets actualized.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/90736_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 09:23:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62578#M5065</guid>
      <dc:creator>ChristianVorstadt</dc:creator>
      <dc:date>2015-04-27T09:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running a Python-Add-In twice</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62579#M5066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you remove the join between runs of the addin?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 09:33:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62579#M5066</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-04-27T09:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running a Python-Add-In twice</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62580#M5067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I tried but I did not manage.&lt;/P&gt;&lt;P&gt;Can you help me how to remove the join in the Add-In?&lt;/P&gt;&lt;P&gt;Excuse my english, I do not have much practice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 09:42:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62580#M5067</guid>
      <dc:creator>ChristianVorstadt</dc:creator>
      <dc:date>2015-04-27T09:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running a Python-Add-In twice</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62581#M5068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christian, no problem... the scripting example can be found in the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Remove_Join/001700000066000000/"&gt;Remove Join&lt;/A&gt; tool documentation.&amp;nbsp; The only reason I was questioning this, is perhaps the tool won't allow for another join if the file already has a join on it.&amp;nbsp; I am not sure whether you want the join to be removed once it is completed or whether you want to join the file and then produce a new one with the joined data, in which case you could use a &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Copy_Features/001700000035000000/"&gt;copy features&lt;/A&gt; tool/script example to keep the resultant files together into a new file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 09:47:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62581#M5068</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-04-27T09:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running a Python-Add-In twice</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62582#M5069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I want to do is to actualize the Shape-File when the content of the joined dbf-file has changed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 09:58:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62582#M5069</guid>
      <dc:creator>ChristianVorstadt</dc:creator>
      <dc:date>2015-04-27T09:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running a Python-Add-In twice</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62583#M5070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then once the join is made, you will have to implement the code example in the Copy features tool to save the combined result to a new shapefile.&amp;nbsp; I would also recommend that you then remove the join using the code from the remove join tool to remove the join, in case you wish to join another file to the original shapefile and repeat the process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 10:20:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62583#M5070</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-04-27T10:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running a Python-Add-In twice</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62584#M5071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When running your add in,&amp;nbsp; have the ArcMap python window open (Geoprocessing -&amp;nbsp; Python menu) so you can see any error messages. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 10:44:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62584#M5071</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2015-04-27T10:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running a Python-Add-In twice</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62585#M5072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the error message (German):&lt;/P&gt;&lt;P&gt;Dataset allready exist&lt;/P&gt;&lt;P&gt;Failed to execute "MakeFeatureLayer"&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/90807_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I remove the layer on this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/90808_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and start the join twice the python-window shows the same error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 11:30:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62585#M5072</guid>
      <dc:creator>ChristianVorstadt</dc:creator>
      <dc:date>2015-04-27T11:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running a Python-Add-In twice</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62586#M5073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in __init__ or onClick set &lt;SPAN class="st"&gt;arcpy.env.overwriteOutput = True &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And in future, please post your code as a formatted code block, not as a screenshot.&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-blog-small" data-containerid="1848" data-containertype="37" data-objectid="1070" data-objecttype="38" href="https://community.esri.com/people/curtvprice/blog/2014/09/25/posting-code-blocks-in-the-new-geonet"&gt;https://community.esri.com/people/curtvprice/blog/2014/09/25/posting-code-blocks-in-the-new-geonet&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 22:54:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62586#M5073</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2015-04-27T22:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with running a Python-Add-In twice</title>
      <link>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62587#M5074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Dan, dear Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for your help.&lt;/P&gt;&lt;P&gt;Now my Add-In works as it should.&lt;/P&gt;&lt;P&gt;Using "arcpy.Delete_Management" on the layer worked and setting "arcpy.env.overwriteOutput = True" gave the same positive result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much from Göttingen in Germany.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian Vorstadt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 07:33:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-with-running-a-python-add-in-twice/m-p/62587#M5074</guid>
      <dc:creator>ChristianVorstadt</dc:creator>
      <dc:date>2015-04-28T07:33:26Z</dc:date>
    </item>
  </channel>
</rss>

