laptop and a wrench

Bug

All rows are returned by the ArcPy data access Search or Update cursors when the in_table for the cursor is a layer resulting from a selection set containing zero features.

Last Published: August 19, 2020 ArcGIS for Desktop
Bug ID Number NIM092638
SubmittedJune 25, 2013
Last ModifiedJune 5, 2024
Applies toArcGIS for Desktop
Version found10.1
StatusWill Not Be Addressed

Additional Information

We apologize that we were unable to address this issue within the current product support cycle.  If the issue continues to affect your work in a supported release, please contact Technical Support.

Workaround

1. Use the pre-existing Search or Update cursors.2. Programmatically check the in_table to the cursors for records. If it yields zero records and the in_table if a layer object, apply a definition query to the data that will also yield zero records. For Example OBJECTID = -1.

Steps to Reproduce

Bug ID: NIM092638

Software:

  • ArcGIS for Desktop

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