Greetings,
I am using the ESRI Working with Experience Builder.
I am trying to upload the local_exp (EXB web app) to AGOL.
Not transfer another EXB from Portal to AGOL.
Can this be done using new_item = local_exp.upload()??
The script is craching at the new_item = local_exp.upload(
The script is:
local_exp = WebExperience(gis = gis, path = local_path1)
#print(local_exp.datasources)
item_mapping = local_exp.datasources
### Target
target = GIS(profile=me)
### Upload
new_item = local_exp.upload(
gis = target,
publish = True,
title = "v3",
item_mapping = local_exp.datasources,
auto_remap = True,
)
new_item
It throws an error at portalUrl
Traceback (most recent call last):
File "C:\Users\ci000030\PycharmProjects\Defra_DEV\.venv\DEV\Upload_Local_BusinessLayers.py", line 34, in <module>
new_item = local_exp.upload(
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\apps\expbuilder\expbuilder.py", line 633, in upload
url = sources[source]["portalUrl"]
KeyError: 'portalUrl'
url = sources[source]["portalUrl"]
KeyError: 'portalUrl'
Can anyone assist to assist to find a solution?
Thanks
Clive