laptop and a wrench

Bug

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.

Zuletzt veröffentlicht: July 13, 2022 ArcGIS API for Python
Bug-ID-Nummer BUG-000148924
EingereichtMay 2, 2022
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for Python
Gefunden in Version2.0.0
BetriebssystemN/A
BetriebssystemversionN/A
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

Workaround

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

Schritte zur Reproduzierung

Bug-ID: BUG-000148924

Software:

  • ArcGIS API for Python

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln