<?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: env.overwriteOutput not working after upgrade to Pro 2.4 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416115#M32772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As an update I can get env.overwriteOutput = True to work if I use python raw string paths ie: r"c:\Path_to_data\myGDB.gdb" instead of other path treatments when setting the env.workspace environemnt setting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I generally use a mix of paths; sometimes forward slashes, sometimes backslashes with the r prefix.&amp;nbsp; Paths with backslashes and the r prefix work but no other path treatment(or at least as far as I have experimented) seems to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2020 17:15:14 GMT</pubDate>
    <dc:creator>RickWheeler1</dc:creator>
    <dc:date>2020-02-18T17:15:14Z</dc:date>
    <item>
      <title>env.overwriteOutput not working after upgrade to Pro 2.4</title>
      <link>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416104#M32761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been working on a python script for over a month; yesterday I upgraded to ArcGIS Pro 2.4.0 and now env.overwriteOutput no longer works, returning ERROR: 002852 Output feature class &amp;lt;path to fc&amp;gt; exists within geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a file geodatabase; have made no changes to the script, and everything works great if I manually delete the feature classes from the geodatabase and run the script again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did have to create a new python clone, and reset my default editor to Spyder after the upgrade to 2.4.&amp;nbsp; Am I missing something, or can others confirm this same behavior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 17:43:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416104#M32761</guid>
      <dc:creator>BruceJohnson</dc:creator>
      <dc:date>2019-07-02T17:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: env.overwriteOutput not working after upgrade to Pro 2.4</title>
      <link>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416105#M32762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will have to post some of your script.&amp;nbsp; I have been using overwriteOutput in recent scripts that I am writing with no issues.&amp;nbsp; The only things that can't be deleted are things associated/created with/by numpy arrays, but there is a workaround that I just throw in to make extra sure "out it goes,.... incoming"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Exists&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;out_fc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;and&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteOutput&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Delete_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;out_fc&lt;SPAN class="punctuation token"&gt;)&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The logic being, that sometimes, I don't want to overwriteOut(s) and sometimes I do.&amp;nbsp; So perhaps the double checking that I do handles things magically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can expand that 'if' statement to include various combinations of both with 'and' and 'or' to suit your situation.&lt;/P&gt;&lt;P&gt;PS.&amp;nbsp; Using Spyder, with Pro open at the same time if that matters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:51:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416105#M32762</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T18:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: env.overwriteOutput not working after upgrade to Pro 2.4</title>
      <link>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416106#M32763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I too have just experienced this issue. I have a basic stand alone python script that contains the&amp;nbsp;&lt;STRONG&gt;arcpy.env.overwriteOutput = True&lt;/STRONG&gt; statement and have been able to update my Feature Classes no problem before yesterday. I just upgraded to ArcPro 2.4 yesterday and it is giving me the Error 002852 because it says my FC already exists within the database. It should be overwriting my FC. I restarted my IDE and closed ArcPro...even restarted my computer to see if I could remove any 'locks' on my FC, but to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Update - I reverted back to ArcPro 2.3 to have my script run again.&lt;/P&gt;&lt;P&gt;-Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2019 15:35:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416106#M32763</guid>
      <dc:creator>KennethThomas1</dc:creator>
      <dc:date>2019-08-02T15:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: env.overwriteOutput not working after upgrade to Pro 2.4</title>
      <link>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416107#M32764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing the same issue. I have added this&amp;nbsp;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;&lt;STRONG style="border: 0px;"&gt;ar&lt;/STRONG&gt;cpy.env.overwriteOutput = True&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff;"&gt; statement At the start of the class and even function. I am sure it was working before now after I&amp;nbsp;&lt;SPAN&gt;upgraded to ArcPro 2.4. is giving me&amp;nbsp;ERROR: 002852&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;-Divya&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 14:35:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416107#M32764</guid>
      <dc:creator>DivyaVarun</dc:creator>
      <dc:date>2019-09-18T14:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: env.overwriteOutput not working after upgrade to Pro 2.4</title>
      <link>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416108#M32765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Divya, report it as a bug.&amp;nbsp; In the interim, I use my solution all the time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 14:46:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416108#M32765</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-09-18T14:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: env.overwriteOutput not working after upgrade to Pro 2.4</title>
      <link>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416109#M32766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just upgraded to 2.4 and this has happened to me. I was using a complex analysis script, but tested it with a simple clipping script tool that has the same behaviour.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The workaround check output conditional is tedious to implement, as every output&amp;nbsp;needs to be tested. And it will add unnecessary processing time to the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been using arcpy.env.overwriteOutput = True since 10.1, not sure I want to go back and amend all my scripts with a deleting check. I'd rather roll back to 2.3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 07:42:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416109#M32766</guid>
      <dc:creator>KurtAdams</dc:creator>
      <dc:date>2020-01-09T07:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: env.overwriteOutput not working after upgrade to Pro 2.4</title>
      <link>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416110#M32767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No issues in 2.5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2020 11:50:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416110#M32767</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-01-18T11:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: env.overwriteOutput not working after upgrade to Pro 2.4</title>
      <link>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416111#M32768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just upgraded to 2.5 and I am now having this issue.&amp;nbsp;In the past I&amp;nbsp;have sometimes made use of the if..delete example above, but I can not do that in this situation as I am trying to publish this as a geoprocessing service with referenced data. It appears that if you delete data when you run the script the publishing tool thinks that project data is missing.&amp;nbsp;SMH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 19:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416111#M32768</guid>
      <dc:creator>LanceKirby2</dc:creator>
      <dc:date>2020-02-12T19:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: env.overwriteOutput not working after upgrade to Pro 2.4</title>
      <link>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416112#M32769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For what it's worth ...&lt;SPAN style="background-color: #ffffff;"&gt;I just upgraded to 2.5 and I am now having this issue.&amp;nbsp; Works in 2.3 not in 2.4 or 2.5.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 14:30:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416112#M32769</guid>
      <dc:creator>RickWheeler1</dc:creator>
      <dc:date>2020-02-13T14:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: env.overwriteOutput not working after upgrade to Pro 2.4</title>
      <link>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416113#M32770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's helpful. This thread should not be marked as "assumed answered". Hopefully someone from esri will jump on here and offer some explanation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 14:35:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416113#M32770</guid>
      <dc:creator>LanceKirby2</dc:creator>
      <dc:date>2020-02-13T14:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: env.overwriteOutput not working after upgrade to Pro 2.4</title>
      <link>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416114#M32771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/Search-Results#search?q=overwriteOutput&amp;amp;content-type=Bugs" style="color: #2989c5; text-decoration: none;"&gt;https://support.esri.com/en/Search-Results#search?q=overwriteOutput&amp;amp;content-type=Bugs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;overwriteOutput&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as a bug has been noted a few times, but not one mention of anything being references in this thread.&amp;nbsp; Shapefiles seemed to be the culprit and perhaps temporary data associations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lack of information could be due to:&lt;/P&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;no one has filed a&amp;nbsp;technical support case&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to see if the situation can be replicated&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;someone from esri hasn't seen this thread and might be able to report on internal rumblings.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps...&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/45316"&gt;Kory Kramer&lt;/A&gt;‌&amp;nbsp; or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/migrated-users/289244"&gt;Michelle Mathias&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you could pass this on to someone... the Space Administrators for&amp;nbsp;&lt;A href="https://community.esri.com/space/2145"&gt;Python&lt;/A&gt;‌ seem not to have seen it and nothing relevant has hit the external support site&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 03:35:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416114#M32771</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-02-18T03:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: env.overwriteOutput not working after upgrade to Pro 2.4</title>
      <link>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416115#M32772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As an update I can get env.overwriteOutput = True to work if I use python raw string paths ie: r"c:\Path_to_data\myGDB.gdb" instead of other path treatments when setting the env.workspace environemnt setting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I generally use a mix of paths; sometimes forward slashes, sometimes backslashes with the r prefix.&amp;nbsp; Paths with backslashes and the r prefix work but no other path treatment(or at least as far as I have experimented) seems to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 17:15:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416115#M32772</guid>
      <dc:creator>RickWheeler1</dc:creator>
      <dc:date>2020-02-18T17:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: env.overwriteOutput not working after upgrade to Pro 2.4</title>
      <link>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416116#M32773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I raised to tech support before I made my first post. The tech watched the error occur on screen share. I made dummy data and the error occurred in stand alone script and in the Analysis window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me it happened with mixture of workspace and r string pathing. Also I only work with GDB and feature classes, never with shapefiles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 04:17:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416116#M32773</guid>
      <dc:creator>KurtAdams</dc:creator>
      <dc:date>2020-02-19T04:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: env.overwriteOutput not working after upgrade to Pro 2.4</title>
      <link>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416117#M32774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have the bug number?&lt;/P&gt;&lt;P&gt;The only issues related to overwriteOutput are related to certain machine architecture or shapefiles&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://support.esri.com/en/bugs/nimbus/TklNMDY0OTMy" title="https://support.esri.com/en/bugs/nimbus/TklNMDY0OTMy"&gt;NIM064932: The Python overwriteoutput geoprocessor setting does..&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or are ancient&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/Search-Results#search?q=OverwriteOutput&amp;amp;content-type=Bugs"&gt;https://support.esri.com/en/Search-Results#search?q=OverwriteOutput&amp;amp;content-type=Bugs&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 10:06:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/env-overwriteoutput-not-working-after-upgrade-to/m-p/416117#M32774</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-02-19T10:06:08Z</dc:date>
    </item>
  </channel>
</rss>

