laptop and a wrench

Bug

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

ArcGIS Pro
Bug ID Number BUG-000179349
SubmittedSeptember 9, 2025
Last ModifiedSeptember 15, 2025
Applies toArcGIS Pro
Version found3.5.2
Operating SystemWindows OS
Operating System Version11.0 64 bit
StatusUnder Consideration

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