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 Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動