Esri / ago-assistant

A swiss army knife for your ArcGIS Online and Portal for ArcGIS accounts
https://ago-assistant.esri.com/
Apache License 2.0
152 stars 89 forks source link

Unable to fully copy layer due to "Name Already Taken" #276

Open IndigoWizard opened 3 years ago

IndigoWizard commented 3 years ago

Whenever I try to make a Full Copy of a layer (specifically) between two accounts, it shows an error on the name:

image

No matter the name, type of characters or string combination, it still shows the same error:

image

Use case: trying to copy content from my temporary mooc ArcGIS Online account to my personal ArcGIS Online account. All layers are public, sharable with no restrictions. The maps copy without any issue, the layers I created for the mooc's exercise are the only problem (so far, that's all I tested)

slibby commented 3 years ago

Hello! I would recommend using the ArcGIS Python API's method clone_items for this case, I think you will have better luck with it and it is more actively developed.

Here is a sample Notebook that accomplishes this, which you could use in the ArcGIS Online Notebook functionality: https://github.com/jmirmelstein/ArcGIS-Python-API-Samples/blob/master/Samples/Copy%20Specific%20Item.ipynb