ERROR

ERROR: code 400. Invalid request: Layer does not support applyEdits with globalId. Bad syntax in request

Last Published: May 24, 2023

Error Message

Attempts to publish or edit a feature service from a branch versioned database fail with the following error message returned:

Error:
ERROR: code 400. Invalid request: Layer does not support applyEdits with globalId. Bad syntax in request.

Cause

The feature service contains layers with a relationship class to other tables where the primary key is not the GlobalID field in the branch versioned database. Refer to ArcGIS Pro: Register a dataset as branch versioned for more information.

Solution or Workaround

Use the Global ID fields in the feature layer attribute table and destination table as the primary key when creating a relationship class.

Note:
If the origin table and the destination table does not have globalID fields, run the Add Global IDs tool with both tables as inputs. In the Geoprocessing pane, search for and open the Add Global IDs tool. For Input Datasets, select the feature layer and the destination table from the drop-down list. 
  1. Run the Migrate Relationship Class geoprocessing tool to migrate the ObjectID-based feature layer relationship class to a GlobalID-based relationship class.
    1. In the Geoprocessing pane, search for and open the Migrate Relationship Class tool.
    2. For Input Relationship Class, browse to and open the relationship class to be migrated to a GlobalID-based relationship class.
    3. Click Run.
The Migrate Relationship Class tool used to change the primary key to the GlobalID
  1. Republish or overwrite the feature service. Refer to ArcGIS Pro: Share a web feature layer using the default configuration or ArcGIS Pro: Overwrite a web feature layer for instructions.
  2. Set the supportApplyEditsWithGlobalids property to true in the ArcGIS REST Services Directory page of the feature layer.
    1. In Portal for ArcGIS, navigate to the item details page of the hosted feature layer. In the Overview tab, below the Layers section, click each layer to open the layer's item details page.
    2. Under the URL section, click View View icon.
    3. At the top of 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. At the top of the ArcGIS REST Services Directory page, click JSON and check if the supportsApplyEditsWithGlobalIds property is set to true.
  3. Repeat Step 3 for all layers in the hosted feature service.

Article ID: 000030282

Software:
  • Portal for ArcGIS
  • ArcGIS Server
  • ArcGIS Pro 3 1
  • ArcGIS Pro 3 0
  • ArcGIS Pro 2 x

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

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options