ERROR
When attempting to add a new item to Portal for ArcGIS from a non-federated ArcGIS Server REST endpoint, the following error occurs:
"Service does not exist or is inaccessible."

As part of an initial investigation, the following steps can be performed:
This error has been observed in an ArcGIS Enterprise environment at version 11.5 using the primary administrator account.
The network traffic can be analyzed with particular attention to the checkURL? entry:

At this stage, the following 401 error may be noted:
{"secured":true,"httpStatusCode":401,"httpStatusMessage":"HTTP/1.1 401 Unauthorized","httpHeaders":{"accessControlAllowOrigin":"*","contentType":"text/html"},"httpResponse":"","url":"https://*******/server/rest/services/**********"}
When the HTTP response headers are investigated, and it may be found that the default site properties had Access-Control-Allow-Origin set to * (asterisk), as shown in the image below.
Along with this, the server's AllowedOrigins property in its Services Directory may show it set to an asterisk as well.
Because of this conflict and its ensuing Cross-Origin Resource Sharing (CORS) policy violation, the service cannot load into Portal for ArcGIS.

Deleting the Access-Control-Allow-Origin property in Internet Information Services (IIS) Manager resolves this issue.
Article ID: 000037726
Get help from ArcGIS experts
Start chatting now