ERROR

Domain: com.esri.arcgis.runtime.error Code: 3054 Description: The item to be created already exists in the database

Last Published: April 25, 2020

Error Message

When working on ArcGIS Online hosted feature service layers in Collector for ArcGIS with an iOS (Aurora), the layers do not draw, and a warning message appears on the layer list indicating "The layer could not be loaded". A click on the warning returns the following error message:

Error:   
Domain: com.esri.arcgis.runtime.error
Code: 3054
Description: The item to be created already exists in the database.

Cause

The problem occurs due to an issue with the domain as stated in the error message. The domain field type does not match the assigned field. In this case, a domain with the short integer type is assigned to a double field type.

Solution or Workaround

To resolve this issue, the X-Ray for ArcCatalog add-in is required.

  1. Click here to download the X-Ray for ArcCatalog add-in, and add it to ArcCatalog.
  2. Download the problematic data to the machine as a file geodatabase.
  3. In ArcCatalog, click Customize > Extensions....
  4. Check the X-Ray Extension for Geodatabases check box.
Image of enabling the add-in
  1. In the X-Ray for Geodatabases pane, click Tools > Replace Field....
  2. In the Replace Field window, for Input Table/Feature Class, select the input dataset.
  3. For Existing Field Name, select the field with the conflicting data type. Input a new field name, and ensure Field Type is the same as the domain's.
  4. Click OK and republish the hosted feature service layers to ArcGIS Online.

Article ID:000021709

Software:
  • ArcGIS Collector
  • ArcGIS Online

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options