<?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: TypeErrors with exporting from Spatially Enabled Dataframes and re-symbolising data in map widget. in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/typeerrors-with-exporting-from-spatially-enabled/m-p/1154354#M7229</link>
    <description>&lt;P&gt;Same issue!&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2022 16:28:19 GMT</pubDate>
    <dc:creator>PaulRacco</dc:creator>
    <dc:date>2022-03-16T16:28:19Z</dc:date>
    <item>
      <title>TypeErrors with exporting from Spatially Enabled Dataframes and re-symbolising data in map widget.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/typeerrors-with-exporting-from-spatially-enabled/m-p/1103253#M6690</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've been getting errors when using a spatially enabled dataframe and the map widget in a jupyter notebook. The issues seem to occur when I either try to symbolise my data or try to export.&lt;/P&gt;&lt;P&gt;When exporting using the below,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sdf.spatial.to_featureclass(location=r"c:\apps\FGDB.gdb")&lt;/LI-CODE&gt;&lt;P&gt;I get a &lt;EM&gt;&lt;STRONG&gt;TypeError: cannot add field: 'fieldname'&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second error is when using the map widget in the notebook, whilst I can spatialise my dataframe using a default renderer, if i try to change this to a custom renderer:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sf.spatial.plot(map_widget = m1, renderer_type='u', col='FIELD_NAME')&lt;/LI-CODE&gt;&lt;P&gt;Then the map widget returns an error - &lt;EM&gt;&lt;STRONG&gt;"Could not update layer.&amp;nbsp; TypeError:&amp;nbsp; Cannot read properties of null (reading 'renderer')&amp;nbsp; See the browser console for more info.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The only thing that i can think of is that my input data has a number of string columns which when imported using pandas, have a dtype=object, which i then convert to a string and replace all Nulls with "N/A".&amp;nbsp; The root cause seems to be that these columns still contains a Null value which is throwing the renderer and also the export commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 20:00:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/typeerrors-with-exporting-from-spatially-enabled/m-p/1103253#M6690</guid>
      <dc:creator>markjones6</dc:creator>
      <dc:date>2021-09-29T20:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: TypeErrors with exporting from Spatially Enabled Dataframes and re-symbolising data in map widget.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/typeerrors-with-exporting-from-spatially-enabled/m-p/1154354#M7229</link>
      <description>&lt;P&gt;Same issue!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 16:28:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/typeerrors-with-exporting-from-spatially-enabled/m-p/1154354#M7229</guid>
      <dc:creator>PaulRacco</dc:creator>
      <dc:date>2022-03-16T16:28:19Z</dc:date>
    </item>
  </channel>
</rss>

