ERROR
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."
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.
Get help from ArcGIS experts
Download the Esri Support App