ERROR

{ "error": { "code": 400, "message": "Unable to complete operation.", "details": [ "Unable to perform addFeatures operation."

Last Published: February 4, 2022

Error Message

Attempts to edit a feature service fail in Portal for ArcGIS Map Viewer, and the following error message is returned:

Error:
{  "error": {   "code": 400,   "message": "Unable to complete operation.",   "details": [    "Unable to perform addFeatures operation."

Cause

  • The feature service is published without applying the z-value based on point feature data, and the data is z-aware.
  • The feature service has the Create, Update and Delete operations disabled.
  • The user is not assigned the appropriate roles to make edits to the geodatabase in an SQL server.

Solution or Workaround

Enable the 'Apply default to features with z-values' option on the feature service

If the feature service is published without applying the default z-values in ArcGIS Pro or ArcMap, this setting can be enabled in ArcGIS Server Manager. Refer to ArcGIS Server: Configure default z-values on an existing feature service for instructions and more information.

Enable the Create, Update, and Delete operations for the feature service

Enabling the Create, Update, and Delete operations allows any user with the appropriate roles and privileges to edit the feature service. Refer to ArcGIS Server: Operations allowed on feature services for instructions and more information.

Assign the db_datareader and db_datawriter roles to the user

Assigning the db_datareader and db_datawriter roles with similar user-schema and default schema provides the user with sufficient privileges to edit the feature services stored in an SQL Server geodatabase. Refer to Microsoft: Database-level roles and ArcGIS Pro: Privileges for geodatabases in SQL Server for instructions and more information.

Article ID:000027168

Software:
  • Portal for ArcGIS

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options