laptop and a wrench

Error

Using the Python syntax lyr.getSelectionSet() on basemap layers raises a "RuntimeError" in ArcGIS Pro.

ArcGIS Pro
Número de ID del error BUG-000179349
EnviadoSeptember 9, 2025
Última modificaciónSeptember 15, 2025
Relacionado conArcGIS Pro
Versión encontrada3.5.2
Sistema operativoWindows OS
Versión de sistema operativo11.0 64 bit
EstadoUnder Consideration

Solución alternativa

Use a property check before calling getSelectionSet(): 

if lyr.isFeatureLayer and not lyr.isBasemapLayer:

   sel = lyr.getSelectionSet()

Pasos para reproducir

ID del error: BUG-000179349

Software:

  • ArcGIS Pro

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