The arcpy.MakeFeatureLayer_management function does not honor the page definition query set on a feature layer in the page layout with data driven pages enabled.
Last Published: September 3, 2018ArcGIS for Desktop
Bug ID Number
BUG-000113769
Submitted
May 6, 2018
Last Modified
June 5, 2024
Applies to
ArcGIS for Desktop
Version found
10.6
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. Note that ArcGIS 10.8.2 is the current release of ArcGIS Desktop and will enter Mature Support in March 2024 (https://support.esri.com/en-us/products/arcmap/life-cycle). There are no plans to release an ArcGIS Desktop 10.9, and we recommend that you migrate to ArcGIS Pro. See Migrate from ArcMap to ArcGIS Pro (https://www.esri.com/en-us/arcgis/products/arcgis-pro/resources/migrate) for more information.
Workaround
Use a query while running the arcpy.MakeFeatureLayer_management to filter the output layer created.