I have developed a Python script using Arcpy to query certain values and append them to a layout.
The script includes the application of symbology, labeling, and a definition query. While the script executes correctly, I encounter an issue where the symbology and labeling do not appear in the exported PDF.
However, when I zoom in or out of the layout in ArcGIS Pro, the symbology and labeling are displayed correctly.
The first image shows the map in ArcGIS Pro with the labeling and symbology present.
The second image shows the exported PDF where the labeling and symbology are absent.
not other posts with the same problem and only 2 hits on the support site.
BUG-000142871 for ArcGIS Pro (esri.com)
may apply, if your script parameters meet the conditions
@MohamedHassan17 , are you using applySymbologyFromLayer by chance? If so, there are some alternative solutions. If not, we would need a reproducible case.
Jeff
No I don't use applySymbologyFromLayer
this is my function