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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.