<?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 File Error 00732 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/sde-connection-file-error-00732/m-p/1376080#M73422</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/551695"&gt;@ccowin_odfw&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Can you &lt;A href="https://community.esri.com/t5/community-help-documents/how-to-insert-code-in-your-post/ta-p/914552" target="_self"&gt;post&lt;/A&gt; a snippet of your code on how you are referencing the SDE connection files?&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2024 19:47:50 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2024-01-30T19:47:50Z</dc:date>
    <item>
      <title>SDE Connection File Error 00732</title>
      <link>https://community.esri.com/t5/python-questions/sde-connection-file-error-00732/m-p/1376073#M73421</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P data-unlink="true"&gt;So I had a bunch of SDE connection files on a network drive. Used them fine for years and today I'm getting a 00732 Error (does not exist or is not supported)&amp;nbsp; for all of them. I read&amp;nbsp;&lt;A href="https://support.esri.com/en-us/knowledge-base/faq-why-am-i-getting-error-000732-dataset-name-does-n-000011874" target="_self"&gt;this&lt;/A&gt;&amp;nbsp;and I guess you need the connection file to be local. Well, they haven't been local ever and have worked fine, but I brought it into C:\ and got the same error.&lt;/P&gt;&lt;P data-unlink="true"&gt;What's the deal? Why did these just break for no reason? The connection file works just fine within Pro.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
import os

arcpy.env.overwriteOutput = True

# Connection file to the enterprise geodatabase can be different on different computers
inputGDB = r"&amp;lt;Network Path&amp;gt;.sde"
arcpy.env.workspace = inputGDB

outputGDB = r"&amp;lt;Network Path&amp;gt;\Spring2024.gdb"
where = """{} = 'Spring2024'""".format(arcpy.AddField_management(inputGDB, "Season_Year"))

if not arcpy.Exists(outputGDB):
    arcpy.CreateFileGDB_management(r'&amp;lt;Network Path&amp;gt;', 'Spring2024.gdb')

all_features = arcpy.ListFeatureClasses()

for feature in all_features:
    outputPath = os.path.join(outputGDB, f'{feature}_Spring2024')
    arcpy.analysis.Select(feature, outputGDB, where)
    print(outputPath + ' Completed')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Traceback (most recent call last):
  File "&amp;lt;string&amp;gt;", line 11, in &amp;lt;module&amp;gt;
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 5174, in AddField
    raise e
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 5171, in AddField
    retval = convertArcObjectToPythonObject(gp.AddField_management(*gp_fixargs((in_table, field_name, field_type, field_precision, field_scale, field_length, field_alias, field_is_nullable, field_is_required, field_domain), True)))
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 520, in &amp;lt;lambda&amp;gt;
    return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
 ERROR 000732: Input Table: Dataset C:\Users\cowinch\AppData\Roaming\Esri\Desktop10.8\ArcCatalog\HERDCOMPeditor@HerdComp@NRIMP-DB.sde does not exist or is not supported
Failed to execute (AddField).&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 20:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sde-connection-file-error-00732/m-p/1376073#M73421</guid>
      <dc:creator>ccowin_odfw</dc:creator>
      <dc:date>2024-01-30T20:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Connection File Error 00732</title>
      <link>https://community.esri.com/t5/python-questions/sde-connection-file-error-00732/m-p/1376080#M73422</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/551695"&gt;@ccowin_odfw&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Can you &lt;A href="https://community.esri.com/t5/community-help-documents/how-to-insert-code-in-your-post/ta-p/914552" target="_self"&gt;post&lt;/A&gt; a snippet of your code on how you are referencing the SDE connection files?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 19:47:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sde-connection-file-error-00732/m-p/1376080#M73422</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2024-01-30T19:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Connection File Error 00732</title>
      <link>https://community.esri.com/t5/python-questions/sde-connection-file-error-00732/m-p/1376113#M73423</link>
      <description>&lt;P&gt;Turned out to be a networking issue, did a DNS Flush and I was able to set the .sde file on the network drive to env. workspace.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 20:23:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sde-connection-file-error-00732/m-p/1376113#M73423</guid>
      <dc:creator>ccowin_odfw</dc:creator>
      <dc:date>2024-01-30T20:23:05Z</dc:date>
    </item>
  </channel>
</rss>

