ERROR

ArcGIS Online: Unable to add layer to the map or establish a secure HTTPS connection to the layer

First Published: November 8, 2023
Last Published: May 6, 2026

Error Message

After changing the source of a view layer in ArcGIS Online, opening the layer view in Map Viewer fails and returns the following error message:

Error:
Unable to add layer: Unable to establish a secure HTTPS connection to the layer. The layer, <layer name>, cannot be added to the map.
A view layer in ArcGIS Online Map Viewer.

Cause

  • The layer ID's are different between the two layers after switching the source for the view layer.
  • The layer is corrupted.

Solution or Workaround

Match the layer ID in ArcGIS Pro

Note:
To determine the layer ID of a hosted feature layer, open the item details page of the hosted featue layer. In the URL section, click View The View icon..
The ArcGIS REST Services Directory window in ArcGIS Online.
  1. Open the ArcGIS Pro project.
  2. In the Contents pane, right-click the map and click Properties.
  3. In the Map Properties dialog box, click the General tab.
  4. Check the Allow assignment of unique numeric IDs for sharing web layers check box.
  5. Click Apply and click OK.
The Map Properties dialog box in ArcGIS Pro.
  1. In the Contents pane, right-click the layer with the mismatching layer ID, and click Properties.
  2. In the Layer Properties dialog box, click the General tab.
  3. For the Layer ID parameter, input the matching layer ID of the source data.
  4. Click Apply and click OK.
The Layer Properties dialog box in ArcGIS Pro.
  1. Overwrite the layer. Refer to ArcGIS Pro: Overwrite a web feature layer for further instructions.

Recreate and republish the layer

Delete the corrupted layer from ArcGIS Online and recreate the layer before republishing.

Article ID: 000031507

Software:
  • ArcGIS Pro
  • ArcGIS Online

Get support with AI

Resolve your issue quickly with the Esri Support AI Chatbot.

Start chatting now

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Start chatting now

Go to download options