laptop and a wrench

Bogue

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.

Dernière publication: July 13, 2022 ArcGIS API for Python
Numéro d’ID de bogue BUG-000148924
EnvoiMay 2, 2022
Dernière modificationJune 5, 2024
S’applique àArcGIS API for Python
Version trouvée2.0.0
Système d’exploitationN/A
Version du système d’exploitationN/A
StatutWill Not Be Addressed

Informations supplémentaires

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.

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000148924

Logiciel:

  • ArcGIS API for Python

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement