Why am I getting the MobileMap upload error: 'features' parameter is invalid, An item with the same key...

 

If you get this message while trying to upload your data from MobileMap:

Most likely there is a duplicate field name in the data being uploaded causing this error. Duplicate field names can be caused by adding the incorrect field names into some the MobileMap settings. This example below shows two ‘Observer' fields. One with a capital ‘O' and one with a lowercase 'o’:

This was caused when the user edited the setting for the ‘Observer Field’ and typed in the field name ‘observer’ instead of ‘Observer’ which is the actual field name. This caused MobileMap to add ‘observer’ to it’s internal database. When the user tried to upload, ArcGIS saw two fields with the same name and gave the ‘duplicate key’ error or ‘An item with the same key has already been added' message.

In this example, if the user had typed ‘Cruiser’ instead, it would have been ignored on the upload because the field ‘Cruiser’ is not part of the data model.

To find this error, the user exported the database from the Actions menu > ‘Export Database’ and sent the resulting JSON.txt file to their data administrator who was able to see the issue with the duplicate field name for ‘Observer’.

Once this has been created in MobileMap there is no easy way to undo it, especially if a user has collected 100’s of records that day. The solution:

  1. The user fixed their setting in MobileMap and

  2. The data administrator was able to clean up the text file and upload the data using the text file with AGOL’s rest end point.

To learn more about data backup and recovery go to https://masonbruce.atlassian.net/wiki/spaces/MD/pages/262212/MobileMap+Data+Backup+Recovery+and+Export#Overview

Â