Esri / arcgis-python-api

Documentation and samples for ArcGIS API for Python
https://developers.arcgis.com/python/
Apache License 2.0
1.87k stars 1.1k forks source link

clone_items() operation with copy_data=False stills copies data #1506

Open mhogeweg opened 1 year ago

mhogeweg commented 1 year ago

Describe the bug We have run into cases where the clone_items() operation with copy_data = False stills copies data from the source Portal to the target Portal.

To Reproduce This happened for services published as dynamic map services from ArcMap that had feature access enabled. for the same Map Service there is a Feature Service end point. We wanted to copy a reference to the source feature service using clone_item(), but then the result was a hosted feature service in the target portal with the data copied. parameter copy_data was set to False.

Expected behavior When copy_data = False, a reference to the source Arcgis Server is put in the cloned item in the target portal and no data is copied.

Platform (please complete the following information):

nparavicini7 commented 1 year ago

@mhogeweg do you know of it happening with any other types of items besides ArcMap dynamic map services? And do you have an example service where this behavior is occuring?