'Updates' Parameter is Invalid - An Item With the Same Key Has Already Been Added (Error Code: 400)

05-27-2019 10:50 AM
New Contributor III

I am trying to update a feature layer with an updated CSV (detailed in this Sample Notebooks section of the ArcGIS API for Python documentation). Here is the code I have been using:

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).

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 edit_features method any longer, instead receiving this error:

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?

How do I remove the key to allow the updates parameter to function properly again, and what can I do in the future to ensure this doesn't happen?

0 Replies