laptop and a wrench

Bogue

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

ArcGIS API for Python
Numéro d’ID de bogue BUG-000167632
EnvoiMay 20, 2024
Dernière modificationAugust 15, 2024
S’applique àArcGIS API for Python
Version trouvée2.2.0
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutAs Designed

Informations supplémentaires

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.

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000167632

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