laptop and a wrench

Bug

Cloning Portal for ArcGIS items using ArcGIS API for Python returns the error message, "The process cannot access the file because it is being used by another process: 'C:\\Users\\ssa_arcgis-maps\\AppData\\Local\\Temp\\metadata.xml" when search_existing_items=False.

ArcGIS API for Python
Bug-ID-Nummer BUG-000161049
EingereichtAugust 30, 2023
Zuletzt geändertSeptember 23, 2025
Gilt fürArcGIS API for Python
Gefunden in VersionN/A
BetriebssystemN/A
BetriebssystemversionN/A
StatusNon-Reproducible

Zusätzliche Informationen

This issue is not reproducible when using the script tool in ArcGIS Pro 3.2.2 and ArcGIS API for Python 2.2.0.1 to clone in ArcGIS Enterprise 11.2.

Workaround

  • Remove search_existing_items=False from the script.
  • Edit the script to execute the clone_items() function once for every item in the items list. For example:

For the item in user.items(folder=sourcefolder):

   item = gis.content.get(item.id)

   gis.content.clone_items([item], folder=targetfolder, search_existing_items=False)

Schritte zur Reproduzierung

Bug-ID: BUG-000161049

Software:

  • ArcGIS API for Python

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln