laptop and a wrench

漏洞

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
漏洞 ID 编号 BUG-000161049
已提交August 30, 2023
上次修改时间September 23, 2025
适用范围ArcGIS API for Python
找到的版本N/A
操作系统N/A
操作系统版本N/A
状态Non-Reproducible

附加信息

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.

解决办法

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

重现步骤

漏洞 ID: BUG-000161049

软件:

  • ArcGIS API for Python

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项