laptop and a wrench

Bug

The Python Definition Query tool does not render automatically in ArcGIS Pro.

Last Published: April 4, 2019 ArcGIS Pro
Bug ID Number BUG-000121155
SubmittedMarch 25, 2019
Last ModifiedApril 22, 2025
Applies toArcGIS Pro
Version found2.3.1
Operating SystemWindows OS
Operating System VersionN/A
StatusWill Not Be Addressed

Additional Information

The issue is how the queryStr in being generated. The string being built is: "RAPP_Year" = 2017 The string must be: RAPP_Year = “2017” This code: field = '"RAPP_Year"' queryStr = field + " = " + str(manage_year) The code was changed to this code and it now works as expected: field = 'RAPP_Year' queryStr = f"{field} = '{manage_year}'"

Workaround

The code was modified to produce the correct definition query string.

Steps to Reproduce

Bug ID: BUG-000121155

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