laptop and a wrench

Error

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
Número de ID del error BUG-000161049
EnviadoAugust 30, 2023
Última modificaciónSeptember 23, 2025
Relacionado conArcGIS API for Python
Versión encontradaN/A
Sistema operativoN/A
Versión de sistema operativoN/A
EstadoNon-Reproducible

Información adicional

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.

Solución alternativa

  • 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)

Pasos para reproducir

ID del error: BUG-000161049

Software:

  • ArcGIS API for Python

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga