<?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 File already exists after file was just created. Code in attached picture in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/file-already-exists-after-file-was-just-created/m-p/1007493#M59219</link>
    <description>&lt;P&gt;Generic Parameters: Table X (where the latitude value of some records are 0 while other records have a latitude of roughly -88) and Folder A&lt;/P&gt;&lt;P&gt;Program Goal: If folder A does not exist, create folder A, geocode just the records of table X where latitude is 0 and store the resulting shapefile in folder A. If folder A does exist, delete folder A,&amp;nbsp;create folder A, geocode just the records of table X where latitude is 0 and store the resulting shapefile in folder A.&lt;/P&gt;&lt;P&gt;My code actually does everything I need it to do. The problem is however is that regardless of whether folder A existed previously or whether it was just created, once my file is geocoded and saved to folder A, my program throws error 000725 "Output feature class already exists". I don't understand why I'm running into this problem since the output feature class was just created. Even the time stamps of the files are accurate so I know I'm not looking at an old version of the shapefile.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help is greatly appreciated. Thanks in advance&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2020 18:57:07 GMT</pubDate>
    <dc:creator>SharitaU</dc:creator>
    <dc:date>2020-12-07T18:57:07Z</dc:date>
    <item>
      <title>File already exists after file was just created. Code in attached picture</title>
      <link>https://community.esri.com/t5/python-questions/file-already-exists-after-file-was-just-created/m-p/1007493#M59219</link>
      <description>&lt;P&gt;Generic Parameters: Table X (where the latitude value of some records are 0 while other records have a latitude of roughly -88) and Folder A&lt;/P&gt;&lt;P&gt;Program Goal: If folder A does not exist, create folder A, geocode just the records of table X where latitude is 0 and store the resulting shapefile in folder A. If folder A does exist, delete folder A,&amp;nbsp;create folder A, geocode just the records of table X where latitude is 0 and store the resulting shapefile in folder A.&lt;/P&gt;&lt;P&gt;My code actually does everything I need it to do. The problem is however is that regardless of whether folder A existed previously or whether it was just created, once my file is geocoded and saved to folder A, my program throws error 000725 "Output feature class already exists". I don't understand why I'm running into this problem since the output feature class was just created. Even the time stamps of the files are accurate so I know I'm not looking at an old version of the shapefile.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help is greatly appreciated. Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 18:57:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/file-already-exists-after-file-was-just-created/m-p/1007493#M59219</guid>
      <dc:creator>SharitaU</dc:creator>
      <dc:date>2020-12-07T18:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: File already exists after file was just created. Code in attached picture</title>
      <link>https://community.esri.com/t5/python-questions/file-already-exists-after-file-was-just-created/m-p/1007586#M59221</link>
      <description>&lt;P&gt;The preview doesn't work (may be tied up in internal checks).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Enter the code between the code blocks by clicking on the &lt;FONT face="arial black,avant garde"&gt;. . .&lt;/FONT&gt; and selecting the &lt;STRONG&gt;&amp;lt;/&amp;gt;&lt;/STRONG&gt; and insert your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In any event, you should set the ability to &lt;STRONG&gt;overwriteOutputs&lt;/STRONG&gt; and use the "&lt;STRONG&gt;Exists&lt;/STRONG&gt;" check.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/get-started/checking-for-existence.htm" target="_blank" rel="noopener"&gt;Checking for the existence of data—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.env.overwriteOutput = True&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 01:16:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/file-already-exists-after-file-was-just-created/m-p/1007586#M59221</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-12-08T01:16:37Z</dc:date>
    </item>
  </channel>
</rss>

