HOW TO
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.
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)
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
Get help from ArcGIS experts
Download the Esri Support App