HOW TO

Fix Data Sources After Cloning ArcGIS Experience Builder Applications

Last Published: July 22, 2024

Summary

There is an existing defect that occurs when cloning ArcGIS Experience Builder applications using the ArcGIS API for Python.  The defect causes the cloned experience to have broken data sources.  The data sources point to the item ID of the hosted feature layer rather than the cloned web map in the 'config/config.json' file, rendering the cloned app uneditable. The defect is expected to be fixed in an upcoming release.

 

This workflow will be helpful for ArcGIS Location Platform accounts migrating ArcGIS Experience Builder applications to ArcGIS Online organizational accounts. 

 

The following workflows update the ‘config/config.json’ with the latest published version of the Web Experience using the items data JSON.   

Procedure

Option 1: ArcGIS API for Python Workflow

  1. Get the ItemID of the Web Experience.
  2. Run the following Python script from a Jupyter Notebook interface using the ItemID.
gis = GIS("home")
item=gis.content.get("[ItemID]")
item_config=item.resources.get("config/config.json")
item_data=item.get_data(try_json=True)
item.resources.update(folder_name="config", file_name="config.json", text=item_data)

 

Option 2: AGOL Assistant Workflow

  1. Login to https://assistant.esri-ps.com/.
  2. Select the Web Experience and click View Item JSON.
  3. Copy the JSON content in the JSON Editor’s Data tab.
  4. In the Resources tab, select the ‘config/config.json’ resource.
  5. Click Edit Resource and replace the JSON with the JSON copied from the Data tab in step 3.
  6. Save.

Disclaimer: ArcGIS Assistant is a community-driven project from Esri Professional Services. While all of the requests from Assistant use supported ArcGIS REST API operations, doing so could leave your content in a broken or reduced state, and Esri Technical Support will not be equipped to help you with that situation. https://guide.assistant.esri-ps.com/docs/faq#is-arcgis-assistant-supported-by-esri 

Article ID: 000033170

Software:
  • ArcGIS API for Python 1 x
  • ArcGIS Experience Builder Developer
  • ArcGIS Experience Builder

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options