clone_items Exception Testing

198
0
02-18-2020 08:17 AM
Status: Open
JimO_Leary2
New Contributor II

The clone_items() function in the ArcGIS API for Python takes a top level item such as a web app and copies it from a source to a target Portal, including all items within that top level item, such as a web map, feature service, layers. However, if one of the items within that top level item is invalid, such as a layer, it fails. There does not seem to be any exception testing. 

I think a better design would allow for an item to fail to copy but let the clone_items() function continue. That way you would still clone the web map and any feature services / layers that are valid.