<?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: Describe workspace noodle scratcher in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/describe-workspace-noodle-scratcher/m-p/505304#M39711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does your SDE connection use OS authentication or database authentication? And is the path in your script the actual path to the SDE connection file? Not something like "Database Connections\SDE_admin.sde"?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for responding.&amp;nbsp; The SDE uses OS authentication and that is the path to the connection file.&amp;nbsp; In fact, I made the connection file using the local user account (with the arcpy.CreateDatabaseConnection_management method).&amp;nbsp; This is all on a Windows 2008 R2 machine, running Server 10.1.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2014 12:21:38 GMT</pubDate>
    <dc:creator>BrendanDwyer</dc:creator>
    <dc:date>2014-01-30T12:21:38Z</dc:date>
    <item>
      <title>Describe workspace noodle scratcher</title>
      <link>https://community.esri.com/t5/python-questions/describe-workspace-noodle-scratcher/m-p/505302#M39709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's a funny one.&amp;nbsp; I've got a python script that runs the arcpy.Describe method on an sde connection file.&amp;nbsp; When I run the script from the command line, it runs fine (script is attached).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I run it from the command line as a different user (a local user)* it returns an error that says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"AttributeError: DescribeData: Method connectionString does not exist"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why would the different user matter?&amp;nbsp; I think it has an issue with the sde connection fine in question, because it can run it on other connection files w/ no problem.&amp;nbsp; But that still leaves the question of why it would run ok as one user and return an error as another.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*On the command prompt:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;runas /noprofile /user:garfield python&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the python command line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;execfile('C:\\&amp;lt;folderwherepythonscriptlives&amp;gt;\\&amp;lt;nameofpythonscrip&amp;gt;.py')&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 20:12:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/describe-workspace-noodle-scratcher/m-p/505302#M39709</guid>
      <dc:creator>BrendanDwyer</dc:creator>
      <dc:date>2014-01-29T20:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Describe workspace noodle scratcher</title>
      <link>https://community.esri.com/t5/python-questions/describe-workspace-noodle-scratcher/m-p/505303#M39710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does your SDE connection use OS authentication or database authentication? And is the path in your script the actual path to the SDE connection file? Not something like "Database Connections\SDE_admin.sde"?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 21:29:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/describe-workspace-noodle-scratcher/m-p/505303#M39710</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2014-01-29T21:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Describe workspace noodle scratcher</title>
      <link>https://community.esri.com/t5/python-questions/describe-workspace-noodle-scratcher/m-p/505304#M39711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does your SDE connection use OS authentication or database authentication? And is the path in your script the actual path to the SDE connection file? Not something like "Database Connections\SDE_admin.sde"?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for responding.&amp;nbsp; The SDE uses OS authentication and that is the path to the connection file.&amp;nbsp; In fact, I made the connection file using the local user account (with the arcpy.CreateDatabaseConnection_management method).&amp;nbsp; This is all on a Windows 2008 R2 machine, running Server 10.1.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 12:21:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/describe-workspace-noodle-scratcher/m-p/505304#M39711</guid>
      <dc:creator>BrendanDwyer</dc:creator>
      <dc:date>2014-01-30T12:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Describe workspace noodle scratcher</title>
      <link>https://community.esri.com/t5/python-questions/describe-workspace-noodle-scratcher/m-p/505305#M39712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;More info: the problem seems to be that with the local user, arcpy doesn't recognize the sde connection file as an sde connection file.&amp;nbsp; If I run a describe on it (see below) it says it's a DEFile, which is just a generic file on disk.*&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code to describe file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;desc = arcpy.Describe(r"C:\python_sde_scripts\gbd_connection.sde")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print desc.dataElementType&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;DEFile&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Defining_parameter_data_types_in_a_Python_toolbox/001500000035000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Defining_parameter_data_types_in_a_Python_toolbox/001500000035000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 12:44:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/describe-workspace-noodle-scratcher/m-p/505305#M39712</guid>
      <dc:creator>BrendanDwyer</dc:creator>
      <dc:date>2014-01-30T12:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Describe workspace noodle scratcher</title>
      <link>https://community.esri.com/t5/python-questions/describe-workspace-noodle-scratcher/m-p/505306#M39713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Most likely cause is the local user isn't authorized to access the database using their OS credentials.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 12:56:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/describe-workspace-noodle-scratcher/m-p/505306#M39713</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2014-01-30T12:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Describe workspace noodle scratcher</title>
      <link>https://community.esri.com/t5/python-questions/describe-workspace-noodle-scratcher/m-p/505307#M39714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Most likely cause is the local user isn't authorized to access the database using their OS credentials.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yep, that was it.&amp;nbsp; Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 14:01:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/describe-workspace-noodle-scratcher/m-p/505307#M39714</guid>
      <dc:creator>BrendanDwyer</dc:creator>
      <dc:date>2014-01-30T14:01:37Z</dc:date>
    </item>
  </channel>
</rss>

