<?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() return False even if feature class exists when used inside FME  in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693506#M53783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have look in the Database Connection properties of the .sde connection file and I can confirm the Authentication Type is: Database authentication, and the username and password are saved inside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jul 2017 14:10:52 GMT</pubDate>
    <dc:creator>MaximeDemers</dc:creator>
    <dc:date>2017-07-04T14:10:52Z</dc:date>
    <item>
      <title>arcpy.Exists() return False even if feature class exists when used inside FME</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693503#M53780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Something very strange happen in my FME shutdown python script that uses arcpy.Exists() function. This function test if a feature class exists or not and returns True or False.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following script returns False in FME even if the feature class do exists. I have tryed the same script in a python shell using the same python interpretor, and it returns True.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas why it fails in FME shutdown python?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class=""&gt;&lt;OL class=""&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;print&lt;/SPAN&gt;&lt;SPAN class=""&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;Exists&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"\\\\cnatrtd8\\geo\\GEODEV011.sde\\GEO09_WEB_MERCATOR\\GEO09E03_CS_STA"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 12:50:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693503#M53780</guid>
      <dc:creator>MaximeDemers</dc:creator>
      <dc:date>2017-07-04T12:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Exists() return False even if feature class exists when used inside FME</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693504#M53781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seeing you are using an SDE connection file, what are the properties in the file?&amp;nbsp; Is it setup for DB user authentication or Operating System authentication?&amp;nbsp; If the latter, does the account or service running FME server have credentials to access the geodatabase?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 13:12:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693504#M53781</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-07-04T13:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Exists() return False even if feature class exists when used inside FME</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693505#M53782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;How can I know if the DB use user authentication or Operating System authentication?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have forgot to mention that FME is not running on a server,&amp;nbsp; but on the same desktop than the python shell, and both are using the same python interpretor (I have double check using sys.version to be sure its the same python interpretor).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 14:00:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693505#M53782</guid>
      <dc:creator>MaximeDemers</dc:creator>
      <dc:date>2017-07-04T14:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Exists() return False even if feature class exists when used inside FME</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693506#M53783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have look in the Database Connection properties of the .sde connection file and I can confirm the Authentication Type is: Database authentication, and the username and password are saved inside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 14:10:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693506#M53783</guid>
      <dc:creator>MaximeDemers</dc:creator>
      <dc:date>2017-07-04T14:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Exists() return False even if feature class exists when used inside FME</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693507#M53784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FME and ArcMap may be on the same machine, and even using the same Python interpreter, but it doesn't mean they are executing under the same credentials when accessing the geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In terms of determining authentication type; launch ArcCatalog, locate the SDE connection file, and right-click properties:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/360038_Untitled2.gif" style="margin-left: 60px; width: 620px; height: 557px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 14:39:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693507#M53784</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-07-04T14:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Exists() return False even if feature class exists when used inside FME</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693508#M53785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can confirm the Authentication Type is: Database authentication, and the credentials are saved inside the .sde. I doubt that this is the cause of the problem...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 14:44:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693508#M53785</guid>
      <dc:creator>MaximeDemers</dc:creator>
      <dc:date>2017-07-04T14:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Exists() return False even if feature class exists when used inside FME</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693509#M53786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might be time to head over to &lt;A class="link-titled" href="https://knowledge.safe.com/topics/forum.html" title="https://knowledge.safe.com/topics/forum.html"&gt;forum - FME Knowledge Center&lt;/A&gt; , and see what the folks there have to say.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 14:47:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693509#M53786</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-07-04T14:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Exists() return False even if feature class exists when used inside FME</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693510#M53787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm... I just had a very similar result, but it was simply with &amp;nbsp;table inside a personal geodatabase. &amp;nbsp; Did you find a solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 18:32:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693510#M53787</guid>
      <dc:creator>AllisonBailey</dc:creator>
      <dc:date>2017-09-01T18:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Exists() return False even if feature class exists when used inside FME</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693511#M53788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it was a known problem of FME 2016 with PYTHONPATH environment variable and arcpy. The&amp;nbsp; workaround is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class=""&gt;&lt;OL class=""&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;# Fix pythonpath&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; sys&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;sys&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;path&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;append&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;sys&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;path&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;pop&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;))&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;sys&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;path&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;append&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;sys&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;path&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;pop&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;))&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;# Business as usual from here&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; arcpy&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;env&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;workspace &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; r&lt;/SPAN&gt;&lt;SPAN class=""&gt;"\\cnatrtd8\geo\GEODEV011.sde"&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;print&lt;/SPAN&gt;&lt;SPAN class=""&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;Exists&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;r&lt;/SPAN&gt;&lt;SPAN class=""&gt;"GEO09_WEB_MERCATOR\GEO09E03_CS_STA"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the issue is resolved in FME 2017&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 19:10:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-exists-return-false-even-if-feature-class/m-p/693511#M53788</guid>
      <dc:creator>MaximeDemers</dc:creator>
      <dc:date>2017-09-01T19:10:02Z</dc:date>
    </item>
  </channel>
</rss>

