<?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 Re: Migrating tbx to atbx ArcGIS Pro 3.0 Export Map Series to PDF timeout in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/migrating-tbx-to-atbx-arcgis-pro-3-0-export-map/m-p/1201806#M65285</link>
    <description>&lt;P&gt;Tech Support is your best option.&amp;nbsp; They can examine the full script and examine the toolbox since nothing is obvious in the documentation regarding any changes made in 3.0&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2022 10:10:27 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2022-08-11T10:10:27Z</dc:date>
    <item>
      <title>Migrating tbx to atbx ArcGIS Pro 3.0 Export Map Series to PDF timeout</title>
      <link>https://community.esri.com/t5/python-questions/migrating-tbx-to-atbx-arcgis-pro-3-0-export-map/m-p/1201163#M65262</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am migrating a python script tool from ArcGIS Pro 2.8 to ArcGIS Pro 3.0 now that the organisation is upgrading.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed &lt;A href="https://pro.arcgis.com/en/pro-app/latest/get-started/migrate-2x-to-3.htm#ESRI_SECTION1_B4064C37BB8D47B8B0AB9E25E82054B3" target="_blank" rel="noopener"&gt;this suggestion&lt;/A&gt; from Esri to 'copy and paste' the script from the .tbx to a new .atbx in a Pro 3.0 map document. I migrated all maps and layouts from the 2.8 document to the 3.0 document and ran the script tool. My first run was successful, but the second time I ran the script, ArcGIS Pro crashed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The difference between the 2 runs was that one of them was exporting a map series to PDF with only 4 maps, whereas my second run contained 14 maps in the map series. The script generated the PDF partially, but I can't open the PDF to see how far it got because the output file is corrupt. I also don't have any logs because ArcGIS Pro crashed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this? Are there any changes in python methods or classes that I should be aware of in Pro 3.0? Code snippet below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;AreaName = 'Area 1'
ActivityId = '12345'
layoutI = aprx.listLayouts("Investigation Layout")[0]
MS = layoutI.mapSeries # Access MapSeries
MS.refresh()
arcpy.AddMessage("14. Creating Investigation PDF...")
PDF_Name_I = "\Investigation - {0} {1}.pdf".format(AreaName, ActivityId)
MS.exportToPDF(output_path + PDF_Name_I)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;It's worth noting I can export the Map Series to PDF manually in ArcGIS Pro 3.0...&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 22:35:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/migrating-tbx-to-atbx-arcgis-pro-3-0-export-map/m-p/1201163#M65262</guid>
      <dc:creator>Kaz</dc:creator>
      <dc:date>2022-08-10T22:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating tbx to atbx ArcGIS Pro 3.0 Export Map Series to PDF timeout</title>
      <link>https://community.esri.com/t5/python-questions/migrating-tbx-to-atbx-arcgis-pro-3-0-export-map/m-p/1201187#M65263</link>
      <description>&lt;P&gt;Are you sure that line 5 and 6 yields a valid path name?&lt;/P&gt;&lt;P&gt;Also, does the *.tbx tool run properly, see code example 4 in the mapseries help&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/mapseries-class.htm" target="_blank"&gt;MapSeries—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 07:08:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/migrating-tbx-to-atbx-arcgis-pro-3-0-export-map/m-p/1201187#M65263</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-08-10T07:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating tbx to atbx ArcGIS Pro 3.0 Export Map Series to PDF timeout</title>
      <link>https://community.esri.com/t5/python-questions/migrating-tbx-to-atbx-arcgis-pro-3-0-export-map/m-p/1201644#M65275</link>
      <description>&lt;P&gt;Just updated the code, yes the path name is valid, the variables are created earlier in the script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes the tool still works in a *.tbx in Pro 2.8 and Pro 2.9, but it won't work in Pro 3.0 without moving it to *.atbx, and even then it is only working sometimes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 22:37:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/migrating-tbx-to-atbx-arcgis-pro-3-0-export-map/m-p/1201644#M65275</guid>
      <dc:creator>Kaz</dc:creator>
      <dc:date>2022-08-10T22:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating tbx to atbx ArcGIS Pro 3.0 Export Map Series to PDF timeout</title>
      <link>https://community.esri.com/t5/python-questions/migrating-tbx-to-atbx-arcgis-pro-3-0-export-map/m-p/1201806#M65285</link>
      <description>&lt;P&gt;Tech Support is your best option.&amp;nbsp; They can examine the full script and examine the toolbox since nothing is obvious in the documentation regarding any changes made in 3.0&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 10:10:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/migrating-tbx-to-atbx-arcgis-pro-3-0-export-map/m-p/1201806#M65285</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-08-11T10:10:27Z</dc:date>
    </item>
  </channel>
</rss>

