ERROR

The feature service does not meet the requirements for a survey. The property supportsApplyEditsWithGlobalIds must be true

Last Published: April 29, 2022

Error Message

In ArcGIS Survey123 Connect, when attempting to create a survey from an existing feature service in ArcGIS Online or Portal for ArcGIS, the following error message is returned:

Error:   
The feature service does not meet the requirements for a survey

The property supportsApplyEditsWithGlobalIds must be true
The error when attempting to create a survey from an existing feature service in ArcGIS Online or Portal for ArcGIS

Cause

Since the release of ArcGIS Survey123 Connect 3.0, the supportsApplyEditsWithGlobalIds property must be set to true in order to submit data to feature layers. Previously, this property was only enforced in surveys containing repeats.

The supportsApplyEditsWithGlobalIds property is set to false if certain requirements are not met. The requirements are:

  • Feature services must have the sync capability enabled.
  • The layers must have an indexed GlobalID field and all relationships must leverage the GlobalID fields.

Solution or Workaround

As a workaround:

  • Enable the sync capability of the feature service
  • Add the related Global IDs for the feature service

Enable the sync capability of the feature service

  1. In ArcGIS Online or Portal for ArcGIS, navigate to Content > My Content > Folders and browse to the hosted feature layer.
  2. Click the Options button Options button, and click View item details. In the item details page, click the Settings tab.
  3. Under the Feature Layer (hosted) settings, in the Editing section, check the Enable editing and Enable Sync (disconnected editing with synchronization) check boxes.
  4. Click Save and proceed to create the survey in ArcGIS Survey123 Connect.
The Feature layer (hosted) setting.

If the problem persists after enabling the sync capability, identify the layers that have the supportsApplyEditsWithGlobalIds property set to false and set the property to true in the ArcGIS REST Services Directory page.

  1. In ArcGIS Online or Portal for ArcGIS, navigate to the item details page of the hosted feature layer. In the Overview tab, below the Layers section, click the service URL of each layer.
  2. In the ArcGIS REST Services Directory page, click JSON. Browse for the supportsApplyEditsWithGlobalIds property, and check if it is set to false.
"supportsApplyEditsWithGlobalIds" : false,
  1. If the property is set to false, return to the ArcGIS REST Services Directory page of the layer and scroll to the Supported Operations section. Click Apply Edits. Set Use GlobalIds to True, and click Apply Edits.
  2. View in JSON and check if the supportsApplyEditsWithGlobalIds property is set to true in the ArcGIS REST Services Directory page.

If the layer is a related table or contains attachments, ensure the GlobalId field is present to enable the supportsApplyEditsWithGlobalIds property. Adding the GlobalID field to the layers must be done in ArcGIS Desktop.

Add Global IDs to all layers, related tables and attachments of the feature service in ArcGIS Pro

  1. Export the feature service as a file geodatabase.
    1. Navigate to the item details page of the hosted feature service in ArcGIS Online or Portal for ArcGIS. In the Overview tab, click Export Data > Export to FGDB.
    2. In the Export to File Geodatabase window, fill in the necessary details, and click Export.
    3. In the item details page of the exported layer (File Geodatabase), navigate to the Overview tab and click Download.
  2. Add the downloaded file geodatabase from step 1 to ArcGIS Pro. Refer to ArcGIS Pro: Add data from a geodatabase for steps to do this.
  3. Run the Add Global IDs geoprocessing tool on all the layers and related tables in the file geodatabase (if the feature layer contains multiple layers and related tables).
    1. In the Geoprocessing pane, click Toolboxes > Data Management Tools > Fields > Add Global IDs.
    2. In the Add Global IDs window, under Parameters, click the drop-down button next to Input Datasets.
    3. Check the check boxes of all the layers and related tables, and click Add. Then click Run.
  4. Run the Migrate Relationship Class geoprocessing tool against the attachments (if the feature layer contains attachments).
    1. In the Geoprocessing pane, click Toolboxes > Data Management Tools > Relationship Classes > Migrate Relationship Class. Under Input Relationship Class, click the folder icon.
    2. In the Input Relationship Class window, browse to the file geodatabase, and select all the attachments related to the feature service. Click OK.
  5. Run the Disable Editor Tracking geoprocessing tool for the file geodatabase.
    1. In the Geoprocessing pane, click Toolboxes > Data Management Tools > Fields > Disable Editor Tracking.
    2. In the Disable Editor Tracking window, look for Parameters and click Input Dataset. Select the folder icon.
    3. In the Input Dataset window, browse to the file geodatabase, select all the attachments related to the feature service, and click OK. Then click Run.
  6. Set all the editor tracking fields to the Read Only mode.
    1. In the Contents pane, right-click the feature layer, and click Design > Fields.
    2. In the table under Current Layer, check all the boxes in the Read Only column. Click Save.
  7. Overwrite the feature layer service. Refer to ArcGIS Pro: Share a web feature layer using the default configuration for steps to do this.
  8. Re-enable editing in the hosted feature layer.
    1. In the item details page of the hosted feature layer, click the Settings tab. Check the Enable editing check box.
    2. Under the Feature Layer (hosted) setting, in the Editing section, check the Enable editing check box. Click Save.
  9. Check if the supportsApplyEditsWithGlobalIds property is set to true in the ArcGIS REST Services Directory page.

Add Global IDs to all the related tables and attachments of the feature service in ArcMap

Note:
This workflow is similar to the workflow described for ArcGIS Pro.
  1. Export the feature service as a file geodatabase. Refer to step 1 described in the workflow for ArcGIS Pro.
  2. Add the downloaded file geodatabase to ArcMap. Refer to ArcMap: Adding data and tools for steps to do this.
  3. Run the Add Global IDs geoprocessing tool on all the layers and related tables in the file geodatabase (if the feature layer contains multiple layers and related tables).
    1. Navigate to ArcToolbox > Data Management Tools > Distributed Geodatabase > Add Global IDs.
    2. In the Add Global IDs window, click the drop-down button next to the box under Input Datasets. Select all the layers and related tables, then click OK.
  4. Run the Migrate Relationship Class geoprocessing tool against the attachments (if the feature layer contains attachments).
    1. Navigate to ArcToolbox > Data Management Tools > Relationship Classes > Migrate Relationship Class.
    2. In the Migrate Relationship Class window, under Input Relationship Class, click the folder icon.
    3. In the Input Relationship Class window, browse to the file geodatabase. Select all the attachments related to the feature service, and click Add. Then click OK.
  5. Run the Disable Editor Tracking geoprocessing tool for the file geodatabase.
    1. Navigate to ArcToolbox > Data Management Tools > Fields > Disable Editor Tracking.
    2. In the Disable Editor Tracking window, under the Input Dataset section, click the folder icon.
    3. In the Input Dataset window, browse to the file geodatabase. Select all the attachments related to the feature service, and click Add. Then click OK.
  6. Overwrite the feature layer service. Refer to ArcGIS Server: Overwriting a service in ArcMap for steps to do this.
  7. Enable editing in the hosted feature layer and check if the supportsApplyEditsWithGlobalIds property is set to true in the ArcGIS REST Services Directory page. Refer to steps 8 and 9 described for ArcGIS Pro.

Article ID:000019862

Software:
  • ArcGIS Survey123 Connect

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options