ERROR

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

Last Published: February 9, 2024

Error Message

After changing the source of a layer view 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 for the source layer view is different.
  • The layer is corrupted.

Solution or Workaround

Match the layer ID in ArcGIS Pro

  1. Open the ArcGIS Pro project.
  2. In the Contents pane, right-click the map and click Properties to open the Properties dialog box.
  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 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 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 3 2
  • ArcGIS Pro 3 1
  • ArcGIS Pro 3 0
  • ArcGIS Online

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic