<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Dynamic text not updating when using Python to export a layout in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-not-updating-when-using-python-to/m-p/1581961#M92692</link>
    <description>&lt;P&gt;In ArcGIS Pro 3.3.1, I have a bunch of layouts that each contain a text box with dynamic text showing the last export date. When I export the layouts individually using Share &amp;gt; Export Layout, this dynamic text updates to today's date (as expected).&lt;/P&gt;&lt;P&gt;However, I want to export multiple layouts at once, to save me having to go through each one and manually export them. The following script works (as in it exports all my layouts at once) but it does not update the dynamic text.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy,os&lt;/P&gt;&lt;P&gt;aprx = arcpy.mp.ArcGISProject("CURRENT")&lt;/P&gt;&lt;P&gt;for lyt in aprx.listLayouts():&lt;/P&gt;&lt;P&gt;lyt.exportToPDF(os.path.join(r"&amp;lt;INSERT FOLDER PATH&amp;gt;", f"{lyt.name}"), clip_to_elements=False)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something I can add to the script to make it update the dynamic text, or is this a bug and should be updating it? I would've thought exportToPDF is what the Share &amp;gt; Export Layout also uses and would therefore work in the same way. I've also tried it with exportToTIFF, exportToJPEG, exportToSVG, and exportToPNG and none of them update the dynamic text either.&lt;/P&gt;&lt;P&gt;I've also looked at the bug fixes for the versions after 3.3.1 and cannot see anything that addresses this issue.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2025 20:02:14 GMT</pubDate>
    <dc:creator>JuliaMoloney1</dc:creator>
    <dc:date>2025-02-04T20:02:14Z</dc:date>
    <item>
      <title>Dynamic text not updating when using Python to export a layout</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-not-updating-when-using-python-to/m-p/1581961#M92692</link>
      <description>&lt;P&gt;In ArcGIS Pro 3.3.1, I have a bunch of layouts that each contain a text box with dynamic text showing the last export date. When I export the layouts individually using Share &amp;gt; Export Layout, this dynamic text updates to today's date (as expected).&lt;/P&gt;&lt;P&gt;However, I want to export multiple layouts at once, to save me having to go through each one and manually export them. The following script works (as in it exports all my layouts at once) but it does not update the dynamic text.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy,os&lt;/P&gt;&lt;P&gt;aprx = arcpy.mp.ArcGISProject("CURRENT")&lt;/P&gt;&lt;P&gt;for lyt in aprx.listLayouts():&lt;/P&gt;&lt;P&gt;lyt.exportToPDF(os.path.join(r"&amp;lt;INSERT FOLDER PATH&amp;gt;", f"{lyt.name}"), clip_to_elements=False)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something I can add to the script to make it update the dynamic text, or is this a bug and should be updating it? I would've thought exportToPDF is what the Share &amp;gt; Export Layout also uses and would therefore work in the same way. I've also tried it with exportToTIFF, exportToJPEG, exportToSVG, and exportToPNG and none of them update the dynamic text either.&lt;/P&gt;&lt;P&gt;I've also looked at the bug fixes for the versions after 3.3.1 and cannot see anything that addresses this issue.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 20:02:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-not-updating-when-using-python-to/m-p/1581961#M92692</guid>
      <dc:creator>JuliaMoloney1</dc:creator>
      <dc:date>2025-02-04T20:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text not updating when using Python to export a layout</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-not-updating-when-using-python-to/m-p/1585123#M93042</link>
      <description>&lt;P&gt;This functionality has now been logged as an enhancement request:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Enhancement ENH-000174302 Provide a method for bulk exporting of layouts in ArcGIS Pro that are not in a map series.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the end I couldn't get the dynamic text to update, but instead used the &lt;EM&gt;re.sub&lt;/EM&gt; function from the &lt;EM&gt;re&lt;/EM&gt; module to substitute the dateExported dynamic text element with the current date (using &lt;EM&gt;datetime&lt;/EM&gt; module). This means for subsequent exports the dateExported dynamic text is not present anymore, so then have a &lt;EM&gt;re.search&amp;nbsp;&lt;/EM&gt;function to find the date text and replace that with the current date.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 19:34:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-not-updating-when-using-python-to/m-p/1585123#M93042</guid>
      <dc:creator>JuliaMoloney1</dc:creator>
      <dc:date>2025-02-13T19:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text not updating when using Python to export a layout</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-not-updating-when-using-python-to/m-p/1679068#M101341</link>
      <description>&lt;P&gt;I have the same issue.&amp;nbsp;&lt;BR /&gt;i really don’t know why but if i export manually my map serie, everything is OK.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But sometimes, with arcpy some randomless dynamic text doesn’t export on the layout.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;i think like you that is real bug and i’m sad to hear that there apparently no solutions on the newest version of arcpy.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I hope ESRI will be alert by this call&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 18:09:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-not-updating-when-using-python-to/m-p/1679068#M101341</guid>
      <dc:creator>Mikkrogeo</dc:creator>
      <dc:date>2026-01-21T18:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text not updating when using Python to export a layout</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-not-updating-when-using-python-to/m-p/1679214#M101345</link>
      <description>&lt;P&gt;I complete my research and I remember that I'did a script wich is launch not from a toolbox but from the IDLE with a right clic and it's OK. Every dynamic text works fine.&lt;/P&gt;&lt;P&gt;It seems to be an issue when you try to export layaout with dynamic text fram a toolbox.&lt;/P&gt;&lt;P&gt;Maybe some memory limitation ?&lt;/P&gt;&lt;P&gt;Please ESRI, do something &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 08:21:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-not-updating-when-using-python-to/m-p/1679214#M101345</guid>
      <dc:creator>OMiPLUMikkrogeo</dc:creator>
      <dc:date>2026-01-22T08:21:20Z</dc:date>
    </item>
  </channel>
</rss>

