laptop and a wrench

Erro

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 do Erro BUG-000161049
EnviadoAugust 30, 2023
Última ModificaçãoSeptember 23, 2025
Aplica-se àArcGIS API for Python
Versão encontradaN/A
Sistema OperacionalN/A
Versão do Sistema OperacionalN/A
StatusNon-Reproducible

Informações Adicionais

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.

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: BUG-000161049

Software:

  • ArcGIS API for Python

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download