<?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 Spatial Enable DataFrame to Enterprise GeoDatabase (EGDB) (.sde) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/spatial-enable-dataframe-to-enterprise-geodatabase/m-p/1400545#M70158</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm attempting to write a spatially enabled dataframe to an SQL Server Enterprise Geodatabase with the sedf.spatial.to_featureclass(location) method.&amp;nbsp; &amp;nbsp;It's not clear to me what I need to pass as the location parameter when dealing with an EGDB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There doesn't seem to be any mention of exporting sedfs to EGDB feature classes on this page&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/guide/part3-data-io-writing-data/" target="_blank"&gt;https://developers.arcgis.com/python/guide/part3-data-io-writing-data/,&lt;/A&gt;&amp;nbsp;rather only mention of exporting to feature layer.&lt;/P&gt;&lt;P&gt;Any pointers would be appreciated.&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;&lt;P&gt;ArcGIS Enterprise 11.2&lt;BR /&gt;ArcGIS Pro 3.2.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2024 19:49:18 GMT</pubDate>
    <dc:creator>TylerT</dc:creator>
    <dc:date>2024-03-25T19:49:18Z</dc:date>
    <item>
      <title>Spatial Enable DataFrame to Enterprise GeoDatabase (EGDB) (.sde)</title>
      <link>https://community.esri.com/t5/python-questions/spatial-enable-dataframe-to-enterprise-geodatabase/m-p/1400545#M70158</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm attempting to write a spatially enabled dataframe to an SQL Server Enterprise Geodatabase with the sedf.spatial.to_featureclass(location) method.&amp;nbsp; &amp;nbsp;It's not clear to me what I need to pass as the location parameter when dealing with an EGDB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There doesn't seem to be any mention of exporting sedfs to EGDB feature classes on this page&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/guide/part3-data-io-writing-data/" target="_blank"&gt;https://developers.arcgis.com/python/guide/part3-data-io-writing-data/,&lt;/A&gt;&amp;nbsp;rather only mention of exporting to feature layer.&lt;/P&gt;&lt;P&gt;Any pointers would be appreciated.&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;&lt;P&gt;ArcGIS Enterprise 11.2&lt;BR /&gt;ArcGIS Pro 3.2.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 19:49:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-enable-dataframe-to-enterprise-geodatabase/m-p/1400545#M70158</guid>
      <dc:creator>TylerT</dc:creator>
      <dc:date>2024-03-25T19:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Enable DataFrame to Enterprise GeoDatabase (EGDB) (.sde)</title>
      <link>https://community.esri.com/t5/python-questions/spatial-enable-dataframe-to-enterprise-geodatabase/m-p/1400738#M70166</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/530005"&gt;@TylerT&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be useful to see what you have attempted and the error(s) you are getting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 06:58:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-enable-dataframe-to-enterprise-geodatabase/m-p/1400738#M70166</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2024-03-26T06:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Enable DataFrame to Enterprise GeoDatabase (EGDB) (.sde)</title>
      <link>https://community.esri.com/t5/python-questions/spatial-enable-dataframe-to-enterprise-geodatabase/m-p/1401039#M70177</link>
      <description>&lt;P&gt;Hello.&amp;nbsp; Thanks for the response.&amp;nbsp; This is the error I'm getting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Feature Class Location: Dataset Z:\dir\...\db.sde does not exist or is not supported
Failed to execute (CreateFeatureclass).&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The location was captured from ArcGIS Pro &amp;gt; Catalog &amp;gt; Databases &amp;gt; select Enterprise Connection &amp;gt; Copy Path...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TylerT_0-1711475353441.png" style="width: 184px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99121i6B346C76489F6988/image-dimensions/184x163?v=v2" width="184" height="163" role="button" title="TylerT_0-1711475353441.png" alt="TylerT_0-1711475353441.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Interestingly, the same path works just fine for arcpy tools such as&amp;nbsp;arcpy.management.CreateFeatureclass(), and other management tools...&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.env.workspace = r"Z:\dir\...\db.sde"
arcpy.management.CreateFeatureclass(&amp;lt;args&amp;gt;)
#This works!&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;My working theories are:&lt;BR /&gt;1) There is an added nuance in the path that I'm not seeing in the docs?,&lt;BR /&gt;2) The geoaccessor namespace &lt;SPAN&gt;sedf.spatial.to_featureclass(location) method&amp;nbsp;&lt;/SPAN&gt;requires the more complex connection string rather than a simple path (I haven't been able to test this yet, b/c I'm also troubleshooting&amp;nbsp;arcpy.management.CreateDatabaseConnectionString() in a separate post since this issue is independent)?&lt;BR /&gt;3) It's not possible to write to SEDF to EGDB (seems unlikely, but then again, why is it not mentioned in i/o post &lt;A href="https://developers.arcgis.com/python/guide/part3-data-io-writing-data/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developers.arcgis.com/python/guide/part3-data-io-writing-data/&lt;/A&gt;)?&lt;BR /&gt;&lt;BR /&gt;Any thoughts?&lt;BR /&gt;&lt;BR /&gt;Tyler&lt;BR /&gt;Enterprise 11.2&lt;BR /&gt;ArcGIS Pro 3.2.0&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 12:50:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-enable-dataframe-to-enterprise-geodatabase/m-p/1401039#M70177</guid>
      <dc:creator>TylerT</dc:creator>
      <dc:date>2024-03-27T12:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Enable DataFrame to Enterprise GeoDatabase (EGDB) (.sde)</title>
      <link>https://community.esri.com/t5/python-questions/spatial-enable-dataframe-to-enterprise-geodatabase/m-p/1401448#M70191</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I broke through the barrier.&amp;nbsp; It is possible to write to EDGBs using GeoAccessor&amp;nbsp;&lt;SPAN&gt;sedf.spatial.to_featureclass(location).&amp;nbsp; The location parameter is a string and takes a similar form as writing to a gdb (e.g.&amp;nbsp;r"Z:\some_dir\...\db.sde\wetlands").&amp;nbsp; I'm not exactly sure what issue I was having.&amp;nbsp; When viewing the Enterprise Database Connection in ArcGIS Pro there was an exclamation point near the connection, so I restarted my PC, removed and replaced the connection from the APRX, then it worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tyler&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 14:29:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-enable-dataframe-to-enterprise-geodatabase/m-p/1401448#M70191</guid>
      <dc:creator>TylerT</dc:creator>
      <dc:date>2024-03-27T14:29:29Z</dc:date>
    </item>
  </channel>
</rss>

