ERROR

The layer '<layer name>' is not accessible by ArcGIS Enterprise. Thus, editing will be disabled on this layer

Last Published: April 25, 2020

Error Message

Attempting to edit a published feature service in Portal for ArcGIS Map Viewer returns the following error message:

Error:   
The layer '<layer name>' is not accessible by ArcGIS Enterprise. Thus, editing will be disabled on this layer.
Image of the error message.

Cause

The following are potential causes for the error:

Portal for ArcGIS does not trust the server
The server containing the feature service is not a trusted server in Portal for ArcGIS.

Access to the feature service is blocked by the Cross-Origin Resource Sharing (CORS) policy
To ensure this is the cause of the error, review the Console tab in the developer tool to check the error message, "Access to XMLHttpRequest at 'website' from item origin 'machine name' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' headers is present on the request resource" for the specific feature layer.

The Console tab can be accessed via the menu depending on the browser.
  • Google Chrome: Navigate to Settings > More tools > Developer tools.
  • Internet Explorer: Navigate to Settings > F12 Developer Tools.
  • Firefox: Navigate to Tools > Web Developer > Inspector.

Solution or Workaround

Depending on the cause, the following are workarounds to solve the issue:

Portal for ArcGIS does not trust the server
Add the server containing the feature service as a trusted server. Refer to Portal for ArcGIS: Trusted servers.
Note:
This setting is only relevant for web-tier authenticated servers, and the servers added must support Cross-Origin Resource Sharing (CORS). Layers hosted on servers without CORS support may not function as expected.

Access to the feature service is blocked by the Cross-Origin Resource Sharing (CORS) policy
  1. Navigate to the Edit Services Directory page in ArcGIS Server Administrator Directory. Use the following URL:
    https://[domain name]:6443/arcgis/admin/system/handlers/rest/servicesdirectory/edit
  2. Edit the allowedOrigins parameter to asterisk (*). Refer to ArcGIS REST API: Request Parameters.

Article ID:000019712

Software:
  • Portal for ArcGIS

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

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options