<?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: arcpy overwriteoutput in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/arcpy-overwriteoutput/m-p/72327#M4172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try examining the geodatabase locks by right-clicking the SDE connection and going to Administration &amp;gt; Administer Geodatabase and then looking at the locks tab. This could give you some info about what users/processes are locking your output feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, does running your script without declaring all those local variables make a difference? I have heard that creating a variable pointing to a feature class can lock it up because the variable represents a pointer from python exe. Just a thought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also be able to make use of the&amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/functions/testschemalock.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/functions/testschemalock.htm"&gt;TestSchemaLock—ArcPy Functions | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;function to test whether you can get an exclusive schema lock on your target dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Micah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2017 18:09:21 GMT</pubDate>
    <dc:creator>MicahBabinski</dc:creator>
    <dc:date>2017-08-24T18:09:21Z</dc:date>
    <item>
      <title>arcpy overwriteoutput</title>
      <link>https://community.esri.com/t5/data-management-questions/arcpy-overwriteoutput/m-p/72324#M4169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some scripts that we use in our office to backup our gdb onto our backup server. I checked them the other day and some are failing saying that the data already exists. I have overwriteoutput = true, so I am not sure why it is not overwriting the data. I am attaching a screenshot of the script and the error. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;IMG alt="Python script and error message" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/368424_error.jpg" style="width: 620px; height: 322px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 15:47:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcpy-overwriteoutput/m-p/72324#M4169</guid>
      <dc:creator>KevinReeves</dc:creator>
      <dc:date>2017-08-24T15:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy overwriteoutput</title>
      <link>https://community.esri.com/t5/data-management-questions/arcpy-overwriteoutput/m-p/72325#M4170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;‌ points out in &lt;A href="https://community.esri.com/thread/182721"&gt;Regarding arcpy.overwriteOutput Property&lt;/A&gt; , "&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;OverwriteOutput will only overwrite if it can.&lt;SPAN&gt;"&amp;nbsp; You are working with SDE/enterprise geodatabases, so you will need to dive deeper to see whether the feature classes and feature datasets you are trying to override are in use, whether the permissions allow them to be removed, etc.... &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 16:53:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcpy-overwriteoutput/m-p/72325#M4170</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-08-24T16:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy overwriteoutput</title>
      <link>https://community.esri.com/t5/data-management-questions/arcpy-overwriteoutput/m-p/72326#M4171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SDE again eh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 17:49:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcpy-overwriteoutput/m-p/72326#M4171</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-08-24T17:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy overwriteoutput</title>
      <link>https://community.esri.com/t5/data-management-questions/arcpy-overwriteoutput/m-p/72327#M4172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try examining the geodatabase locks by right-clicking the SDE connection and going to Administration &amp;gt; Administer Geodatabase and then looking at the locks tab. This could give you some info about what users/processes are locking your output feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, does running your script without declaring all those local variables make a difference? I have heard that creating a variable pointing to a feature class can lock it up because the variable represents a pointer from python exe. Just a thought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also be able to make use of the&amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/functions/testschemalock.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/functions/testschemalock.htm"&gt;TestSchemaLock—ArcPy Functions | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;function to test whether you can get an exclusive schema lock on your target dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Micah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 18:09:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcpy-overwriteoutput/m-p/72327#M4172</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2017-08-24T18:09:21Z</dc:date>
    </item>
  </channel>
</rss>

