Hello,I have an arcpy script that I run which generates PDF Maps every week and sometimes it zooms to a layer that I'm interested by doing a select and zoomtofeatures but doesnt always work. Its very inconsistent and I'm not sure why..These are the few lines that I have which selects/zooms to the area of interest.
lyr.definitionQuery = whereOrders
arcpy.SelectLayerByAttribute_management(lyr, "NEW_SELECTION", whereOrders)
df.zoomToSelectedFeatures()
df.Extent = lyr.getSelectedExtent()
Attaching the sample output for reference.Appreciate any feedback on this...Thanks!-Pawan Vuppala