Portal for ArcGIS (The layer, Layer Name, cannot be added to the map) …. error

1201
12
11-22-2017 01:28 AM
abdullahqasrawi
Occasional Contributor

I am trying to publish a layer to portal for ArcGIS 10.5 by using ArcGIS pro 2.0.0.  portal for ArcGIS 10.5 and ArcGIS server 10.5 are federated, then I found the error (The layer, Layer Name, cannot be added to the map.) Please see the screenshot below.

 

What might the issue be her?

0 Kudos
12 Replies
JakeSkinner
Esri Esteemed Contributor

Hi Abdullah,

  1. Is the service a hosted feature service, or is it an ArcGIS Server service?
  2. Does the service appear under 'My Content'?
  3. Is the service's URL HTTP or HTTPS?
abdullahqasrawi
Occasional Contributor

Hi Jake Skinner

 

  1. Is the service a hosted feature service, or is it an ArcGIS Server service?

 hosted feature service published by ArcGIS pro

  1. Does the service appear under 'My Content'?

Yes

  1. Is the service's URL HTTP or HTTPS?

HTTPS

0 Kudos
JakeSkinner
Esri Esteemed Contributor

You are most likely receiving a certificate error when you try to add the service to the web map.  Try copying the service URL, open a new browser tab, and try pasting it in this tab.  Is a certificate error returned?

RandallWilliams
Esri Regular Contributor

I agree with Jake. This is a mixed content issue. You have the map viewer open in HTTP, but you're trying to add the layer over HTTPS. Personally, I'd just set your portal to require HTTPS only. 

abdullahqasrawi
Occasional Contributor

Hi Randall Williams

Actually, I did not get your point, how I can set the portal require HTTPS only.

Please note that I enabled (Allow access to the portal through HTTPS only) in security tab and the issue still exist. Screenshot below

0 Kudos
abdullahqasrawi
Occasional Contributor

Hi Jake Skinner

I pasted the URL on a new browser tab and i found the error below

0 Kudos
PanagiotisPapadopoulos
Esri Regular Contributor

on the url try to use the domain name and not the ip address.

0 Kudos
abdullahqasrawi
Occasional Contributor

Hi Panagiotis Papadopoulos

I found the error below

0 Kudos
PanagiotisPapadopoulos
Esri Regular Contributor

is it possible to access the rest services?

https://<domain name>/arcgis/rest

0 Kudos