<?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 Spatially Enabled Dataframe to_featureclass results in NULL attributes when exporting to SDE table in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-to-featureclass/m-p/1084879#M6422</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When trying to export a spatially enabled dataframe to a feature class in SDE or as a shp, the featureclass retains it's geometry, but all attributes result in NULL values in the exported feature class.&amp;nbsp; If i perform an export to AGO using to_featurelayer, then the attributes are exported as expected.&lt;/P&gt;&lt;P&gt;The command used is:&lt;/P&gt;&lt;PRE&gt;test_sdf = pd.Dataframe.spatial.to_featureclass(location=**sde connection here**)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts appreciated!&lt;/P&gt;</description>
    <pubDate>Mon, 02 Aug 2021 13:05:47 GMT</pubDate>
    <dc:creator>markjones6</dc:creator>
    <dc:date>2021-08-02T13:05:47Z</dc:date>
    <item>
      <title>Spatially Enabled Dataframe to_featureclass results in NULL attributes when exporting to SDE table</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-to-featureclass/m-p/1084879#M6422</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When trying to export a spatially enabled dataframe to a feature class in SDE or as a shp, the featureclass retains it's geometry, but all attributes result in NULL values in the exported feature class.&amp;nbsp; If i perform an export to AGO using to_featurelayer, then the attributes are exported as expected.&lt;/P&gt;&lt;P&gt;The command used is:&lt;/P&gt;&lt;PRE&gt;test_sdf = pd.Dataframe.spatial.to_featureclass(location=**sde connection here**)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 13:05:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-to-featureclass/m-p/1084879#M6422</guid>
      <dc:creator>markjones6</dc:creator>
      <dc:date>2021-08-02T13:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Spatially Enabled Dataframe to_featureclass results in NULL attributes when exporting to SDE table</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-to-featureclass/m-p/1085031#M6423</link>
      <description>&lt;P&gt;As a workaround, what happens when you convert to a featureset and then try the save method? Like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;test_fs = pd.Dataframe.spatial.to_featureset()
test_fs.save(
    save_location="path/to/your/location",
    out_name="test"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See here for more info on the method:&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html?highlight=featureset#arcgis.features.FeatureSet.save" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html?highlight=featureset#arcgis.features.FeatureSet.save&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 18:09:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-to-featureclass/m-p/1085031#M6423</guid>
      <dc:creator>emedina</dc:creator>
      <dc:date>2021-08-02T18:09:04Z</dc:date>
    </item>
  </channel>
</rss>

