laptop and a wrench

Bug

Using the Python syntax 'lyr.getSelectionSet()' on basemap layers returns an error message, "RuntimeError", in ArcGIS Pro.

ArcGIS Pro
Bug ID Number BUG-000179349
SubmittedSeptember 9, 2025
Last ModifiedJanuary 6, 2026
Applies toArcGIS Pro
Version found3.5.2
Operating SystemWindows OS
Operating System Version11.0 64 bit
Version Fixed3.7
StatusFixed

Additional Information

This issue is addressed in ArcGIS Pro 3.7.

Workaround

Use a property check before calling getSelectionSet():

if lyr.isFeatureLayer and not lyr.isBasemapLayer:

   sel = lyr.getSelectionSet()

Steps to Reproduce

Bug ID: BUG-000179349

Software:

  • ArcGIS Pro

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