00427: Unique identifier must be _id when editing is enabled

You are sharing data from Elasticsearch or OpenSearch as a web feature layer that references registered data, but the selected unique identifier for the query layer does not support editing. The _id (underscore) field must be the only selected unique identifier when editing is enabled.

Solutions

Do one of the following:

  • Change the unique identifier field.

    Hover over the analyzer message. Click the Options button Options that appears and click Change Source Layer Properties. On the Layer Properties dialog box, on the Source tab, click the Edit Query button Pencil. On the Edit Query Layer dialog box, click Next. Select the _id field, unselect any other field if necessary, and click Finish.

  • If you don't need to edit any of the data in the map, disable editing and publish a read-only web feature layer.

    Click the Configuration tab. If necessary, click the Configure Layers tab Configure Layers below it. Under Layer(s), next to Feature, click the Configure Web Layer Properties button Configure Web Layer Properties. Under Operations, uncheck the Enable editing and allow editors to check box.

Additional information

For more information, see Analyze your GIS resource.