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, 2020ArcGIS for Desktop
Bug ID Number
NIM092638
Submitted
June 25, 2013
Last Modified
June 5, 2024
Applies to
ArcGIS for Desktop
Version found
10.1
Status
Will Not Be Addressed
The development team has considered the issue or request and concluded it will not be addressed. The issue's Additional Information section may contain further explanation.
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.