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.
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.
To resolve this issue, the X-Ray for ArcCatalog add-in is required.