laptop and a wrench

Error

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
Número de ID del error BUG-000159162
EnviadoJune 16, 2023
Última modificaciónAugust 18, 2025
Relacionado conArcGIS API for Python
Versión encontrada2.1.1
Sistema operativoWindows OS
Versión de sistema operativo11.0 64 bit
EstadoAs Designed

Información adicional

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.

Solución alternativa

  • 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).

Pasos para reproducir

ID del error: BUG-000159162

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