laptop and a wrench

Erro

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 Publicação: July 13, 2022 ArcGIS API for Python
Número de ID do Erro BUG-000148924
EnviadoMay 2, 2022
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS API for Python
Versão encontrada2.0.0
Sistema OperacionalN/A
Versão do Sistema OperacionalN/A
StatusWill Not Be Addressed

Informações Adicionais

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.

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: BUG-000148924

Software:

  • ArcGIS API for Python

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download