<?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: exportToPDF hangs in arcgis pro 2.8 running from toolbox .tbx in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1066166#M41768</link>
    <description>&lt;P&gt;Ian, I can NOT reproduce, even on 2.8 final.&amp;nbsp; Just to be clear, I've created a script tool in a toolbox (tbx) that has no parameters and runs your 3 lines of code.&lt;/P&gt;&lt;P&gt;Again, can you reproduce this issue with other projects / layouts?&amp;nbsp; I could be data specific.&amp;nbsp; In these cases it makes the most sense to open an Esri support instance where they have the resources to help you diagnose the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff = Layout and arcpy.mp teams&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jun 2021 20:26:01 GMT</pubDate>
    <dc:creator>JeffBarrette</dc:creator>
    <dc:date>2021-06-08T20:26:01Z</dc:date>
    <item>
      <title>exportToPDF hangs in arcgis pro 2.8 running from toolbox .tbx</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1062894#M41438</link>
      <description>&lt;P&gt;I have an toolbox .tbx running a python / arcpy script that exports the layout to PDF and EPS .&amp;nbsp; This toolbox worked in 2.7 , but now hangs in 2.8 .&amp;nbsp; The lines it hangs on is:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;the_layout.exportToPDF("C:\\temp\\test.pdf")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The same issue also occurs on:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;the_layout.exportToPDF("C:\\temp\\now.pdf")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No exceptions are caught, the application just spins and does not return from the method call. Pressing cancel on the running toolbox does not stop this.&amp;nbsp; Only killing the application in the task manager exits this. Oddly, the PDF file is created.&lt;/P&gt;&lt;P&gt;In the python window, the following code works as expected and does not hang:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;aprx = arcpy.mp.ArcGISProject("current")&lt;BR /&gt;the_layout = aprx.listLayouts("letter_portrait")[0]&lt;BR /&gt;the_layout.exportToPDF("C:\\temp\\now.pdf")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 28 May 2021 15:45:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1062894#M41438</guid>
      <dc:creator>IanAlexander</dc:creator>
      <dc:date>2021-05-28T15:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF hangs in arcgis pro 2.8 running from toolbox .tbx</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1064915#M41630</link>
      <description>&lt;P&gt;Ian,&lt;/P&gt;&lt;P&gt;I can NOT reproduce this issue using the code you have above.&amp;nbsp; Can you reproduce with other layouts in other projects?&amp;nbsp; Is there something unique about the project, the data, do you have multiple layouts with the same name, etc?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 22:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1064915#M41630</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2021-06-03T22:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF hangs in arcgis pro 2.8 running from toolbox .tbx</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1066112#M41762</link>
      <description>&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The layout creates correctly, and the code works in the python window.&amp;nbsp; It is only when it is run through a toolbox (.tbx) that it hangs on exportToPDF (after the layout has already been successfully created). There are no duplicate layout names. The toolbox can be brought into any 2.8 project, and will fail/hang.&amp;nbsp; The toolbox can be brought into any 2.7 project, and it will succeed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 17:46:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1066112#M41762</guid>
      <dc:creator>IanAlexander</dc:creator>
      <dc:date>2021-06-08T17:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF hangs in arcgis pro 2.8 running from toolbox .tbx</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1066166#M41768</link>
      <description>&lt;P&gt;Ian, I can NOT reproduce, even on 2.8 final.&amp;nbsp; Just to be clear, I've created a script tool in a toolbox (tbx) that has no parameters and runs your 3 lines of code.&lt;/P&gt;&lt;P&gt;Again, can you reproduce this issue with other projects / layouts?&amp;nbsp; I could be data specific.&amp;nbsp; In these cases it makes the most sense to open an Esri support instance where they have the resources to help you diagnose the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff = Layout and arcpy.mp teams&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 20:26:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1066166#M41768</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2021-06-08T20:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF hangs in arcgis pro 2.8 running from toolbox .tbx</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1066175#M41770</link>
      <description>&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for the note.&amp;nbsp; You are correct.&amp;nbsp; When I create a simple tbx with the three line script, I am unable to get the script to hang.&amp;nbsp; Unfortunately, the PDF that is created shows the layout elements, but the map is blank / missing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will work to get a concrete example that results in the hanging I am experiencing with my existing production toolbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 20:53:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1066175#M41770</guid>
      <dc:creator>IanAlexander</dc:creator>
      <dc:date>2021-06-08T20:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF hangs in arcgis pro 2.8 running from toolbox .tbx</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1066176#M41771</link>
      <description>&lt;P&gt;Ian, the map not displaying is an interesting clue.&amp;nbsp; If your steps are clear and reproducible and you can produce a project package (ppkx), you are welcome to send it directly to me (&lt;A href="mailto:jbarrette@esri.com" target="_blank"&gt;jbarrette@esri.com&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 20:57:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1066176#M41771</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2021-06-08T20:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF hangs in arcgis pro 2.8 running from toolbox .tbx</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1067353#M41905</link>
      <description>&lt;P&gt;Ian, we might have found the cause.&amp;nbsp; Do you have any layers with labels that use simple or advanced Python expressions?&amp;nbsp; A customer just reported they are having a similar hang as you and turning off the labeled or changing the expression engine (eg., to Arcade) allows export.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff - Layout and arcpy.mp teams&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 14:46:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1067353#M41905</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2021-06-11T14:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF hangs in arcgis pro 2.8 running from toolbox .tbx</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1068002#M42001</link>
      <description>&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for the note.&amp;nbsp; The labels are all Arcade expressions.&amp;nbsp; I simplified the expressions and turned off the labeling:&lt;BR /&gt;the_layer.showLabels = False&lt;/P&gt;&lt;P&gt;Unfortunately, exportToPDF still hangs.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 16:51:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1068002#M42001</guid>
      <dc:creator>IanAlexander</dc:creator>
      <dc:date>2021-06-14T16:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF hangs in arcgis pro 2.8 running from toolbox .tbx</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1068040#M42005</link>
      <description>&lt;P&gt;That is unfortunate.&amp;nbsp; I hoped we had a solution.&amp;nbsp; 2 others have confirmed my findings.&amp;nbsp; The best thing to do is to somehow get a reproducible case to technical support so your situation can be evaluated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 17:39:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1068040#M42005</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2021-06-14T17:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF hangs in arcgis pro 2.8 running from toolbox .tbx</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1069551#M42161</link>
      <description>&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I found a work around for now.&amp;nbsp; Adding a sleep for 3 seconds prior to running the export allows the export to run correctly (sleeping for 1 second still hangs).&lt;/P&gt;&lt;P&gt;time.sleep(3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 19:22:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1069551#M42161</guid>
      <dc:creator>IanAlexander</dc:creator>
      <dc:date>2021-06-17T19:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF hangs in arcgis pro 2.8 running from toolbox .tbx</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1076380#M43003</link>
      <description>&lt;P&gt;Just wanted to chime in here since I am having a similar issue since updating to 2.8.&amp;nbsp; All of my scripted maps are hanging on exportToPDF.&amp;nbsp; This is occurring both from python directly, and from Pro toolboxes.&amp;nbsp; The time.sleep workaround did not work for me unfortunately.&amp;nbsp; Thank you for the potential solution though, and glad it worked for you.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 17:09:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1076380#M43003</guid>
      <dc:creator>Marshal</dc:creator>
      <dc:date>2021-07-07T17:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF hangs in arcgis pro 2.8 running from toolbox .tbx</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1076387#M43004</link>
      <description>&lt;P&gt;This is going to be addressed in the 2.8.2 patch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff - arcpy.mp and Layout teams&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 17:26:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1076387#M43004</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2021-07-07T17:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF hangs in arcgis pro 2.8 running from toolbox .tbx</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1076416#M43009</link>
      <description>&lt;P&gt;That is great news.&amp;nbsp; Thank you for the update, Jeff!&lt;/P&gt;&lt;P&gt;I realize this may be asking too much, but do you have any sort of time frame when 2.8.2 might drop?&amp;nbsp; More than a month?&amp;nbsp; Trying to evaluate if it is worth reinstalling 2.7 to get these processes working.&lt;/P&gt;&lt;P&gt;No worries if you cannot provide insight.&amp;nbsp; Just thought it couldn't hurt to ask.&lt;/P&gt;&lt;P&gt;Thanks again for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 18:19:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1076416#M43009</guid>
      <dc:creator>Marshal</dc:creator>
      <dc:date>2021-07-07T18:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF hangs in arcgis pro 2.8 running from toolbox .tbx</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1097659#M45486</link>
      <description>&lt;P&gt;This issue seems to be resolved with the 2.8.2 release .&amp;nbsp; The layout export is working as expected.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 15:31:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1097659#M45486</guid>
      <dc:creator>IanAlexander</dc:creator>
      <dc:date>2021-09-13T15:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: exportToPDF hangs in arcgis pro 2.8 running from toolbox .tbx</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1268390#M66708</link>
      <description>&lt;P&gt;Hi Jeff, I'm having a problem with the exportToPDF() hanging as well.&amp;nbsp; I have an aprx with multiple layouts. I'm converting a script that previously worked with arcpy.mapping to arcpy.mp and I'm unable to get the script to complete. It seems to make it all the way to exportToPDF and then hangs, it doesn't throw an error to catch either.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 05:02:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporttopdf-hangs-in-arcgis-pro-2-8-running-from/m-p/1268390#M66708</guid>
      <dc:creator>ohughes2</dc:creator>
      <dc:date>2023-03-16T05:02:20Z</dc:date>
    </item>
  </channel>
</rss>

