<?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.Exists not locating an existing feature class. in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-exists-not-locating-an-existing-feature/m-p/1400008#M80850</link>
    <description>&lt;P&gt;UPDATE: It seems moving the folder off of my downloads location to elsewhere fixed the issue!&lt;/P&gt;</description>
    <pubDate>Sat, 23 Mar 2024 18:59:19 GMT</pubDate>
    <dc:creator>MatthewHershberger01</dc:creator>
    <dc:date>2024-03-23T18:59:19Z</dc:date>
    <item>
      <title>arcpy.Exists not locating an existing feature class.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-exists-not-locating-an-existing-feature/m-p/1400006#M80849</link>
      <description>&lt;P&gt;Please excuse my (very) novice understanding of this issue. I have this code:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;arcpy&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;arcpy &lt;SPAN&gt;import &lt;/SPAN&gt;env&lt;BR /&gt;env.workspace = &lt;SPAN&gt;"C:/Users/matth/Desktop/CSULB/Richards_605/Geoproccessing/Geoproccessing.gdb"&lt;BR /&gt;&lt;/SPAN&gt;env.overwriteOutput = &lt;SPAN&gt;True&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;def &lt;/SPAN&gt;&lt;SPAN&gt;myDescFunction&lt;/SPAN&gt;(&lt;SPAN&gt;fc&lt;/SPAN&gt;):&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;'Processing {}'&lt;/SPAN&gt;.format(&lt;SPAN&gt;fc&lt;/SPAN&gt;))&lt;BR /&gt;    &lt;SPAN&gt;if &lt;/SPAN&gt;arcpy.Exists(&lt;SPAN&gt;fc&lt;/SPAN&gt;):&lt;BR /&gt;        &lt;SPAN&gt;desc &lt;/SPAN&gt;= arcpy.Describe(&lt;SPAN&gt;fc&lt;/SPAN&gt;)&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"the base name for {0} is {1}"&lt;/SPAN&gt;.format(&lt;SPAN&gt;fc&lt;/SPAN&gt;, &lt;SPAN&gt;desc&lt;/SPAN&gt;.baseName))&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;desc&lt;/SPAN&gt;.shapeType)&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;desc&lt;/SPAN&gt;.dataType)&lt;BR /&gt;    &lt;SPAN&gt;else&lt;/SPAN&gt;:&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Did not find the feature class: " &lt;/SPAN&gt;+ &lt;SPAN&gt;fc&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if &lt;/SPAN&gt;__name__ == &lt;SPAN&gt;"__main__"&lt;/SPAN&gt;:&lt;BR /&gt;    myDescFunction(&lt;SPAN&gt;"C:&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;Users&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;matth&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;Downloads&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;HBCentral.gdb&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;HBCentral.gdb&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;Address&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;SiteAddressPoint"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it's returning:&lt;/P&gt;&lt;P&gt;"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" C:\Users\matth\PycharmProjects\pythonProject1\env.py&lt;BR /&gt;Processing C:\Users\matth\Downloads\HBCentral.gdb\HBCentral.gdb\Address\SiteAddressPoint&lt;BR /&gt;Did not find the feature class: C:\Users\matth\Downloads\HBCentral.gdb\HBCentral.gdb\Address\SiteAddressPoint&lt;/P&gt;&lt;P&gt;Process finished with exit code 0&lt;/P&gt;&lt;P&gt;I have verified that I am using a completely identical code to a colleague w/ same format and they received:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatthewHershberger01_0-1711215438048.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98888iB0214E0CCBCAE700/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatthewHershberger01_0-1711215438048.png" alt="MatthewHershberger01_0-1711215438048.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2024 17:38:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-exists-not-locating-an-existing-feature/m-p/1400006#M80849</guid>
      <dc:creator>MatthewHershberger01</dc:creator>
      <dc:date>2024-03-23T17:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Exists not locating an existing feature class.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-exists-not-locating-an-existing-feature/m-p/1400008#M80850</link>
      <description>&lt;P&gt;UPDATE: It seems moving the folder off of my downloads location to elsewhere fixed the issue!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2024 18:59:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-exists-not-locating-an-existing-feature/m-p/1400008#M80850</guid>
      <dc:creator>MatthewHershberger01</dc:creator>
      <dc:date>2024-03-23T18:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Exists not locating an existing feature class.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-exists-not-locating-an-existing-feature/m-p/1400379#M80904</link>
      <description>&lt;P&gt;shouldn't have an issue withe the download folder, suspect the issue is that your connect string says you have a FGDB stored inside a FGDB.&lt;/P&gt;&lt;PRE&gt; myDescFunction(&lt;SPAN&gt;"C:&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;Users&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;matth&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;Downloads&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;HBCentral.gdb\\HBCentral.gdb&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;Address&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;SiteAddressPoint"&lt;/SPAN&gt;)&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Mar 2024 15:20:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-exists-not-locating-an-existing-feature/m-p/1400379#M80904</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2024-03-25T15:20:09Z</dc:date>
    </item>
  </channel>
</rss>

