laptop and a wrench

Bug

ArcGIS API Python insert_layer function fails in ArcGIS Online using a file geodatabase with attachments.

ArcGIS API for Python
Bug ID Number BUG-000167656
SubmittedMay 21, 2024
Last ModifiedNovember 7, 2024
Applies toArcGIS API for Python
Version found2.2.0
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version FixedQ4 2024 (version 2.4.0)
StatusFixed

Workaround

The workaround is to create a blank feature service (feature layer), add a blank layer and add features/attachments with edit_features(), for example: new_feature_layer.layers[0].edit_features(adds=[features],use_global_ids=True,attachments={"adds":sm_item2_attach})

Steps to Reproduce

Bug ID: BUG-000167656

Software:

  • ArcGIS API for Python

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options