AnsweredAssumed Answered

Dynamic layout elements in Pro not exporting via Python

Question asked by szelonis_mcpd on Jun 22, 2017
Latest reply on Jun 26, 2017 by szelonis_mcpd

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? 

Attachments

Outcomes