laptop and a wrench

Erro

Using the ArcGIS API for Python insert_layer() function to insert a file geodatabase with attachments fails in ArcGIS Online.

ArcGIS API for Python
Número de ID do Erro BUG-000167632
EnviadoMay 20, 2024
Última ModificaçãoAugust 15, 2024
Aplica-se àArcGIS API for Python
Versão encontrada2.2.0
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusAs Designed

Informações Adicionais

The user need to pre-upload the attachments. The sample shows them trying to passing in the file path, which will not work. Refer to the documentation called Attachments to be added or updated can use either pre-uploaded data or base 64encoded data. There is also a link that describes how the attachments must be pre-uploaded.

Solução Provisória

Create a blank feature service (feature layer), add a blank layer, and add features or attachments with the edit_features() function.

For example: new_feature_layer.layers[0].edit_features(

adds=[features],

use_global_ids=True,

attachments={"adds": sm_item2_attach})

Etapas para Reproduzir

ID do Erro: BUG-000167632

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