laptop and a wrench

Error

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.

Última publicación: July 13, 2022 ArcGIS API for Python
Número de ID del error BUG-000148924
EnviadoMay 2, 2022
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for Python
Versión encontrada2.0.0
Sistema operativoN/A
Versión de sistema operativoN/A
EstadoWill Not Be Addressed

Información adicional

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.

Solución alternativa

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

Pasos para reproducir

ID del error: BUG-000148924

Software:

  • ArcGIS API for Python

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga