<?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: SDE Connection error in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/sde-connection-error/m-p/59346#M4729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your "Database Connections" folder is user specific ("%APPDATA%\ESRI\Desktop10.1\ArcCatalog"). When dealing with servers it is best to store them in a location all users can access. Otherwise you will run into issues if another user or the system attempts to execute the script they won't be able to find that location.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Sep 2013 14:37:40 GMT</pubDate>
    <dc:creator>MathewCoyle</dc:creator>
    <dc:date>2013-09-10T14:37:40Z</dc:date>
    <item>
      <title>SDE Connection error</title>
      <link>https://community.esri.com/t5/python-questions/sde-connection-error/m-p/59343#M4726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are trying to run a python script on the server on a feature class within an SDE database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The error code reads:&amp;nbsp; ERROR 000732: Input Features: Dataset does not exist or is not supported. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy, csv, os&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy._mapping&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy.da&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = "Database Connections\\ARC1_SQLExpress(2).sde"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;theDBfile = "L3_Edits.DBO.L3_Lines"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fcoutput = "L3_Edits.DBO.L3_verts"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.FeatureVerticesToPoints_management(theDBfile,fcoutput,"ALL")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are running ARC 10.2; Windows Server 2008 R2.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Our SDE connection is missing something... None of the examples we have seen have shown anything else workable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 02:29:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sde-connection-error/m-p/59343#M4726</guid>
      <dc:creator>DianeBird</dc:creator>
      <dc:date>2013-09-10T02:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Connection error</title>
      <link>https://community.esri.com/t5/python-questions/sde-connection-error/m-p/59344#M4727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you post all your code? Are you sure the connection file exists in that location? Are you attempting to run this as a service/task while not logged in?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, please read this on posting code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/48475-Please-read-How-to-post-Python-code"&gt;http://forums.arcgis.com/threads/48475-Please-read-How-to-post-Python-code&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 12:13:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sde-connection-error/m-p/59344#M4727</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-09-10T12:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Connection error</title>
      <link>https://community.esri.com/t5/python-questions/sde-connection-error/m-p/59345#M4728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you post all your code? Are you sure the connection file exists in that location? Are you attempting to run this as a service/task while not logged in?&lt;BR /&gt;&lt;BR /&gt;Also, please read this on posting code.&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/48475-Please-read-How-to-post-Python-code"&gt;http://forums.arcgis.com/threads/48475-Please-read-How-to-post-Python-code&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your comments and link. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The connection is what we see in Catalog under "Database Connections".&amp;nbsp; Should we be looking under "Database Servers"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This code is the beginning of a conversion of programs written and working for shapefiles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We are just learning Python and trying to figure out how to connect to our SDE database.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 14:08:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sde-connection-error/m-p/59345#M4728</guid>
      <dc:creator>DianeBird</dc:creator>
      <dc:date>2013-09-10T14:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Connection error</title>
      <link>https://community.esri.com/t5/python-questions/sde-connection-error/m-p/59346#M4729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your "Database Connections" folder is user specific ("%APPDATA%\ESRI\Desktop10.1\ArcCatalog"). When dealing with servers it is best to store them in a location all users can access. Otherwise you will run into issues if another user or the system attempts to execute the script they won't be able to find that location.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 14:37:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sde-connection-error/m-p/59346#M4729</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-09-10T14:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Connection error</title>
      <link>https://community.esri.com/t5/python-questions/sde-connection-error/m-p/59347#M4730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah haa!&amp;nbsp; Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That was the bit of information we needed.&amp;nbsp; We copied the connection file to a C:\Data folder and it worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;arcpy.env.workspace = "C:\\Data\\Connection to ARC1_SQLExpress (2).sde"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 15:10:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sde-connection-error/m-p/59347#M4730</guid>
      <dc:creator>DianeBird</dc:creator>
      <dc:date>2013-09-10T15:10:53Z</dc:date>
    </item>
  </channel>
</rss>

