Dynamic layout elements in Pro not exporting via Python

626
2
06-22-2017 07:23 AM
ShelbyZelonisRoberson
Occasional Contributor III

I'm working with Esri tech support on this but I want to know if anyone else is having the same issue.

I have a layout that I created in ArcGIS Pro 1.4.1 (also tried with Beta 2.0). The layout has a map series in it. I have dynamic text elements in the layout that are based on the series page name and attributes. I also have a dynamic legend that only shows the features that display on the map -- these features are based on a matching page query.

I'm trying to export the layout using a standalone Python (version 3.5.2) script so that I can automate the export as a task in Windows scheduler. Here's the problem: when I export the layout (in any format... PNG, PDF, JPG, etc) using a hardcoded path to the ArcGIS Pro project (e.g., C:\folder\pro.aprx) the dynamic elements do not show up correctly on the export. All dynamic text boxes do not show up at all, and the Legend does not honor the page query (it shows all features, not just the ones displayed on the map). However, when I export the layout manually or by using the Python window and use "CURRENT" as the project path, everything works fine. I tried creating a new project, new layouts, new maps -- all to no avail.

Is anyone else experiencing this behavior? 

Tags (2)
0 Kudos
2 Replies
GurminderBharani
New Contributor

shelbyzelonis‌ Could you please attach the python script? 

0 Kudos
ShelbyZelonisRoberson
Occasional Contributor III

I just attached a slightly modified (some privacy stuff removed) version of the script. It's pretty basic so I feel like it has something to do with Pro. 

0 Kudos