<?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: 'Updates' Parameter is Invalid - An Item With the Same Key Has Already Been Added (Error Code: 400) in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/updates-parameter-is-invalid-an-item-with-the-same/m-p/1374465#M9584</link>
    <description>&lt;P&gt;This same error was driving me insane yesterday. Like you, I was making edits to a spatial dataframe via pandas and trying to push them back up to the feature layer. Restarting the kernel and republishing the layer did nothing.&lt;/P&gt;&lt;P&gt;In my case, the cause of the error turned out to be a capitalization error when trying to access a field ("Status") in the SDF, resulting in the creation of a new field ("status"). I see some similar discrepancies in your dataframe indices; Perhaps they're true to the field names you're mapping together, but I would double-check "Descriptio", or the "BuildingID" capitalization differences.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2024 16:46:46 GMT</pubDate>
    <dc:creator>sam-gartrell</dc:creator>
    <dc:date>2024-01-25T16:46:46Z</dc:date>
    <item>
      <title>'Updates' Parameter is Invalid - An Item With the Same Key Has Already Been Added (Error Code: 400)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/updates-parameter-is-invalid-an-item-with-the-same/m-p/812027#M2501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to update a feature layer with an updated CSV (detailed in this &lt;A href="https://developers.arcgis.com/python/sample-notebooks/updating-features-in-a-feature-layer/"&gt;Sample Notebooks section&lt;/A&gt; of the ArcGIS API for Python documentation). Here is the code I have been using:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/448542_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;I have had no issues when testing various parameters (this is only part of a larger script that interacts with a SQL database; this section is dealing with the SQL query results as a CSV, preparing it for comparison/update to the feature layer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While test running some code in Jupyter, there was a small syntax error right after this section. I fixed the syntax error, restarted the kernel, and ran the code. However, now I cannot seem to run the&amp;nbsp;&lt;EM&gt;edit_features&lt;/EM&gt; method any longer, instead receiving this error:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/448543_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did the kernel not clear this parameter? Is it stuck in some weird limbo between Jupyter and the feature layer that I can't figure out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How do I remove the key to allow the&amp;nbsp;&lt;EM&gt;updates&lt;/EM&gt; parameter to function properly again, and what can I do in the future to ensure this doesn't happen?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2019 17:50:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/updates-parameter-is-invalid-an-item-with-the-same/m-p/812027#M2501</guid>
      <dc:creator>JeremyMullins1</dc:creator>
      <dc:date>2019-05-27T17:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: 'Updates' Parameter is Invalid - An Item With the Same Key Has Already Been Added (Error Code: 400)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/updates-parameter-is-invalid-an-item-with-the-same/m-p/1374465#M9584</link>
      <description>&lt;P&gt;This same error was driving me insane yesterday. Like you, I was making edits to a spatial dataframe via pandas and trying to push them back up to the feature layer. Restarting the kernel and republishing the layer did nothing.&lt;/P&gt;&lt;P&gt;In my case, the cause of the error turned out to be a capitalization error when trying to access a field ("Status") in the SDF, resulting in the creation of a new field ("status"). I see some similar discrepancies in your dataframe indices; Perhaps they're true to the field names you're mapping together, but I would double-check "Descriptio", or the "BuildingID" capitalization differences.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 16:46:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/updates-parameter-is-invalid-an-item-with-the-same/m-p/1374465#M9584</guid>
      <dc:creator>sam-gartrell</dc:creator>
      <dc:date>2024-01-25T16:46:46Z</dc:date>
    </item>
  </channel>
</rss>

