laptop and a wrench

Error

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 del error BUG-000167632
EnviadoMay 20, 2024
Última modificaciónAugust 15, 2024
Relacionado conArcGIS API for Python
Versión encontrada2.2.0
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoAs Designed

Información adicional

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.

Solución alternativa

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})

Pasos para reproducir

ID del error: BUG-000167632

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