Open angularpi opened 8 months ago
I am running into this issue as well. I posted in the esri community about it here: https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-clone-items-issue-with/m-p/1418584#M9977
But, it seems that if a layer has multiScaleGeometryInfo, and the layer in the service is not ID=0, I run into this error.
In my case, I have one layer in my FS, and its ID is 156, not 0, it also has multiscalegeometryinfo (I guess it was published from a project with multiple layers in it, but all published individually)
It seems that it is looking for 0 instead of the actual layer id.
I've tested other layers where the ID is similar, but no multiscalegeometryinfo, and it clones fine.
Describe the bug Trying to use clone-items() method to clone Map Web App from Organization SOURCE to Organization TARGET in ArcGIS Online. The app is in the SOURCE folder along with 5 other apps. There are 7 Maps and about 60 feature layers in the same folder. The script runs for 10 minutes before backing out. I can see several Feature Layers in the TARGET Folder before the clone method deletes them in the back out process.
To Reproduce Steps to reproduce the behavior:
error:
Screenshots If applicable, add screenshots to help explain your problem.
Expected behavior I expect clone_items() to copy the Map Web App, the associated Map, and associated Feature Layers from the SOURCE Organization to the TARGET Organization. I plan to execute the same script for each one of the 6 Apps (they share Feature Layers)
Platform (please complete the following information):
Additional context Add any other context about the problem here, attachments etc.