laptop and a wrench

漏洞

The combination of overwrite = True and add functions within the script returns the error message, "item...already exists." Overwrite=true is not honored when .add is used within the same statement.

上次发布: July 13, 2022 ArcGIS API for Python
漏洞 ID 编号 BUG-000148924
已提交May 2, 2022
上次修改时间June 5, 2024
适用范围ArcGIS API for Python
找到的版本2.0.0
操作系统N/A
操作系统版本N/A
状态Will Not Be Addressed

附加信息

The overwrite in the add method of the ContentManager is to state whether the item has the possibility to be overwritten. Using add to overwrite is not a recommended workflow, instead, refer to the overwrite method found in the FeatureLayerCollectionManager class: https://developers.arcgis.com/python/api-reference/arcgis.features.managers.html?highlight=overwrite#arcgis.features.managers.FeatureLayerCollectionManager.overwrite.

解决办法

Create a script with conditional statements to bypass the error. Refer to Upload_Update_SHP_HFL as modified script.

重现步骤

漏洞 ID: BUG-000148924

软件:

  • ArcGIS API for Python

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项