Hello,
I am trying to clone a web map from my portal (arcgis enterprise) to AGOL account. The web map consists of layers added using the following url (https://services9.arcgis.com/RHVPKKiFTONKtxq3/arcgis/rest/services/NOAA_short_term_warnings_v1/Featu... . When I try to clone this web map, it throws as error.
I have used the following lines of code to clone the web map:
source = GIS(url=portalurl, username=username, password=password, verify_cert=False)
target = GIS(url="https://www.arcgis.com", username=username_agol, password=password_agol, verify_cert=False)
wmap = source.content.get(wmapID)
target_clone_item = target.content.clone_items([wmap])
The error message is as follows:
Exception: Invalid token.
Invalid token.
(Error Code: 498)