Select to view content in your preferred language

Cloning a Feature Layer Using the clone_items Method

205
0
01-29-2025 11:17 PM
Status: Open
Labels (1)
MasaakiKurokawa
Occasional Contributor

Initially, when I copy featurelayer on AGOL,I encountered an error, as described in this link.

To resolve the issue, I modified the typeKeywords and then executed clone_items, which allowed me to successfully copy the feature layer without errors.

However, reverting the typeKeywords afterward was tedious. To simplify the process, I decided to clone the entire Web Map associated with the hosted feature layer instead.

I executed clone_items by entering the Web Map’s item ID, and the process completed successfully.

Afterward, I deleted the copied Web Map.

Conclusion
When working with data for backup or testing purposes, cloning the entire Web Map is more efficient as it reduces the number of steps involved.