<?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: overwriteOutput not working in 10.2.2 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/overwriteoutput-not-working-in-10-2-2/m-p/139364#M10888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the same problem using 10.1 going from tables in a gdb to feature dataset feature classes.&amp;nbsp; Changing the output to something other than the name of the input table solved my two days of head scratching.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Aug 2014 16:27:44 GMT</pubDate>
    <dc:creator>GerryGabrisch</dc:creator>
    <dc:date>2014-08-22T16:27:44Z</dc:date>
    <item>
      <title>overwriteOutput not working in 10.2.2</title>
      <link>https://community.esri.com/t5/python-questions/overwriteoutput-not-working-in-10-2-2/m-p/139358#M10882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ever since upgrading to 10.2.2 my python code(s) tell me the file already exists and won't overwrite (using CopyFeatures or Copy). In ArcCatalog, I have my geoprocessing options set to overwrite and arcpy.env.overwriteOutput = True in my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know of a solution???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;EDIT: I am copying one feature class to another to a file geodatabase -&amp;gt; feature dataset. Both feature classes and feature datasets have the same projection. Worked fine in 10.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT2: It won't overwrite using modelbuilder either. Get "Already exists" error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 22:25:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/overwriteoutput-not-working-in-10-2-2/m-p/139358#M10882</guid>
      <dc:creator>AmyKlug</dc:creator>
      <dc:date>2014-08-19T22:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: overwriteOutput not working in 10.2.2</title>
      <link>https://community.esri.com/t5/python-questions/overwriteoutput-not-working-in-10-2-2/m-p/139359#M10883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can’t reproduce – a rerun of a tool works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.Copy_management(in_data="C:/Temp/DougGolfCourses.gdb/GolfCourses",out_data="C:/Temp/DougGolfCourses.gdb/GolfCourses_Copy",data_type="FeatureClass")&lt;/P&gt;&lt;P&gt;&amp;lt;Result 'C:&lt;BR /&gt;Temp&lt;BR /&gt;DougGolfCourses.gdb&lt;BR /&gt;GolfCourses_Copy'&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.env.overwriteOutput&lt;/P&gt;&lt;P&gt;True&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.GetInstallInfo()['Version']&lt;/P&gt;&lt;P&gt;u'10.2.2'&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 22:32:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/overwriteoutput-not-working-in-10-2-2/m-p/139359#M10883</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2014-08-19T22:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: overwriteOutput not working in 10.2.2</title>
      <link>https://community.esri.com/t5/python-questions/overwriteoutput-not-working-in-10-2-2/m-p/139360#M10884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried copying a feature class from GDB to GDB and FDS to GDB it worked fine. GDB or FDS to FDS would not overwrite. There seems to be an issue with overwriting a feature class in a feature dataset (FDS). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 00:29:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/overwriteoutput-not-working-in-10-2-2/m-p/139360#M10884</guid>
      <dc:creator>AmyKlug</dc:creator>
      <dc:date>2014-08-20T00:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: overwriteOutput not working in 10.2.2</title>
      <link>https://community.esri.com/t5/python-questions/overwriteoutput-not-working-in-10-2-2/m-p/139361#M10885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I try the code below which copies the source to dest1 and dest2 (featureclass in a feature dataset), it works without any problem in 10.2.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14085005181233439 jive_text_macro" jivemacro_uid="_14085005181233439"&gt;
&lt;P&gt;import arcpy&lt;/P&gt;
&lt;P&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;source = r"C:\Forum\overwrite\source.gdb\myFC"&lt;/P&gt;
&lt;P&gt;dest1 = r"C:\Forum\overwrite\dest1.gdb\myFC"&lt;/P&gt;
&lt;P&gt;dest2 = r"C:\Forum\overwrite\dest2.gdb\featDS\myFC"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;arcpy.Copy_management(in_data=source,out_data=dest1,data_type="FeatureClass")&lt;/P&gt;
&lt;P&gt;arcpy.Copy_management(in_data=source,out_data=dest2,data_type="FeatureClass")&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way I could reproduce this error was trying to write to the dest2 featureclass without using the feature dataset in the path. Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1408500657327223" jivemacro_uid="_1408500657327223" modifiedtitle="true"&gt;
&lt;P&gt;dest2 = r"C:\Forum\overwrite\dest2.gdb\myFC"&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure you are using the output feature dataset in referencing the output featureclass?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 02:11:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/overwriteoutput-not-working-in-10-2-2/m-p/139361#M10885</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-08-20T02:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: overwriteOutput not working in 10.2.2</title>
      <link>https://community.esri.com/t5/python-questions/overwriteoutput-not-working-in-10-2-2/m-p/139362#M10886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After some testing I think with 10.2.2 the feature dataset and the feature class can't have the same name; If they do/you want them to, you have to first delete the feature class then copy in the updated version.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 17:33:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/overwriteoutput-not-working-in-10-2-2/m-p/139362#M10886</guid>
      <dc:creator>AmyKlug</dc:creator>
      <dc:date>2014-08-20T17:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: overwriteOutput not working in 10.2.2</title>
      <link>https://community.esri.com/t5/python-questions/overwriteoutput-not-working-in-10-2-2/m-p/139363#M10887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good advice, Amy!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my experience naming any two objects within in the geodatabase or folder the same can break tools (or your own model or script tool). Layer names and dataset names get duplicated in your memory namespace and bad karma grows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like starting names with a number or using spaces in your path, things may work okay at first, but break at the least opportune moment for you.&amp;nbsp; My advice: learn from the suffering from others and don't tempt fate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This includes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Feature classes within parallel feature datasets&lt;/LI&gt;&lt;/UL&gt;&lt;P style="padding-left: 30px;"&gt;fc1/features&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;fc2/features&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Objects in a folder workspace (with different extensions)&lt;/LI&gt;&lt;/UL&gt;&lt;P style="padding-left: 30px;"&gt;mydata.shp&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;mydata.tif&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;mydata (folder)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;mydata (Esri grid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid issues,&amp;nbsp; &lt;EM&gt;everything&lt;/EM&gt; in a workspace should have a unique name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 20:17:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/overwriteoutput-not-working-in-10-2-2/m-p/139363#M10887</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-08-20T20:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: overwriteOutput not working in 10.2.2</title>
      <link>https://community.esri.com/t5/python-questions/overwriteoutput-not-working-in-10-2-2/m-p/139364#M10888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the same problem using 10.1 going from tables in a gdb to feature dataset feature classes.&amp;nbsp; Changing the output to something other than the name of the input table solved my two days of head scratching.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 16:27:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/overwriteoutput-not-working-in-10-2-2/m-p/139364#M10888</guid>
      <dc:creator>GerryGabrisch</dc:creator>
      <dc:date>2014-08-22T16:27:44Z</dc:date>
    </item>
  </channel>
</rss>

