Select to view content in your preferred language

ArcPy Cloning stalling

311
1
10-17-2023 11:03 AM
daniel_marincounty
New Contributor II

Hello,

I am using the cloning methods described here (https://developers.arcgis.com/python/guide/cloning-content/). I've tried the Cloning Multiple Items simultaneously and it always stalls around 12-13 items. At first, I thought it was because of the search method, so I added max_items=1000. However, this still stalls at the same interval. I also tried using this Notebook app (https://github.com/tyhranac/ArcGIS-Notebooks/blob/main/CloneItemsNotebookApp.ipynb) but I have the same problem. Does anyone know why it is stalling? I don't receive an error message, the script just seems to go on for hours without progress.

0 Kudos
1 Reply
daniel_marincounty
New Contributor II

I've also tried using the "Helper Functions" section and receive this error message when I get to printing the feature layers,

 

---------------------------------------------------------------------------
StopIteration                             Traceback (most recent call last)
In  [77]:
Line 14:    f"""{next(f['title'] for f in source.users.me.folders 

StopIteration: 
0 Kudos