<?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 Catergorical D type error when using edit_features() to add rows to hosted feature layer from local geodatabase in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/catergorical-d-type-error-when-using-edit-features/m-p/1282424#M8631</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I've recently run into an issue with some code that I have has successfully working for over a year. The problem occurs when I try to add new rows to my agol hosted feature layer using the following code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkBennett_0-1682440121510.png" style="width: 785px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69053iC891242D068B811B/image-dimensions/785x51?v=v2" width="785" height="51" role="button" title="MarkBennett_0-1682440121510.png" alt="MarkBennett_0-1682440121510.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can run almost the exact same code in order to update online features and don't run into any issues. Below is the error that I get. I thought that this might have to do with the online data having categorical d types, while the geodatabase does not, but I'm not sure why this doesn't affect using the edit_features to update features though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;{KeyError} CategoricalDtype(categories=['left_only', 'right_only', 'both'], ordered=False)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone had any ideas they can tell me, or has experienced anything similar, I'd be grateful for the help!&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2023 16:44:51 GMT</pubDate>
    <dc:creator>MarkBennett</dc:creator>
    <dc:date>2023-04-25T16:44:51Z</dc:date>
    <item>
      <title>Catergorical D type error when using edit_features() to add rows to hosted feature layer from local geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/catergorical-d-type-error-when-using-edit-features/m-p/1282424#M8631</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I've recently run into an issue with some code that I have has successfully working for over a year. The problem occurs when I try to add new rows to my agol hosted feature layer using the following code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkBennett_0-1682440121510.png" style="width: 785px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69053iC891242D068B811B/image-dimensions/785x51?v=v2" width="785" height="51" role="button" title="MarkBennett_0-1682440121510.png" alt="MarkBennett_0-1682440121510.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can run almost the exact same code in order to update online features and don't run into any issues. Below is the error that I get. I thought that this might have to do with the online data having categorical d types, while the geodatabase does not, but I'm not sure why this doesn't affect using the edit_features to update features though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;{KeyError} CategoricalDtype(categories=['left_only', 'right_only', 'both'], ordered=False)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone had any ideas they can tell me, or has experienced anything similar, I'd be grateful for the help!&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 16:44:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/catergorical-d-type-error-when-using-edit-features/m-p/1282424#M8631</guid>
      <dc:creator>MarkBennett</dc:creator>
      <dc:date>2023-04-25T16:44:51Z</dc:date>
    </item>
  </channel>
</rss>

