laptop and a wrench

Bug

Creating a hosted feature layer view using ArcGIS API for Python fails to create the expected visualization if the layer is set with a non-sequential layer ID in ArcGIS Pro.

ArcGIS API for Python
Bug-ID-Nummer BUG-000159162
EingereichtJune 16, 2023
Zuletzt geändertAugust 18, 2025
Gilt fürArcGIS API for Python
Gefunden in Version2.1.1
BetriebssystemWindows OS
Betriebssystemversion11.0 64 bit
StatusAs Designed

Zusätzliche Informationen

To preserve the order, preserve_layer_ids must be set to True, and the layers/tables must be provided to the view. res2 = mgr.create_view( name=f"my_view_{uuid.uuid4().hex[:4]}", view_layers=[item.layers[3], item.layers[1]], preserve_layer_ids=True, ) This results in a layer with two layers in the view. The layer IDs are preserved as 83 and 1.

Workaround

  • Use the ArcGIS Online user interface (UI) to create the layer view.
  • Keep the default sequential layer IDs (0,1, 2, 3, and so forth).

Schritte zur Reproduzierung

Bug-ID: BUG-000159162

Software:

  • ArcGIS API for Python

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln