laptop and a wrench

Bug

Swapping source layers on the hosted feature layer view breaks viewer access.

ArcGIS Online
Bug ID Number BUG-000168316
SubmittedJune 13, 2024
Last ModifiedJune 12, 2025
Applies toArcGIS Online
Version foundN/A
Operating SystemN/A
Operating System VersionN/A
StatusIn Review

Workaround

  • Use the REST API to access the hosted feature layer view 'deletefromDefinition' and 'addToDefinition' endpoints to drop and re-add layers, setting the correct layer ID.
  • Use the Python API to alter the content item's data JSON to reflect the current layer ID. This does not correct dependent maps or apps that already use the old layer ID.
  • Swap the source layer using the workflow outlined here: https://doc.arcgis.com/en/arcgis-online/manage-data/swap-view-source.htm.

Steps to Reproduce

Bug ID: BUG-000168316

Software:

  • ArcGIS Online

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options