<?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: layout.exportToPDF() runs indefinitely in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/layout-exporttopdf-runs-indefinitely/m-p/1115299#M62936</link>
    <description>&lt;P&gt;The java.lang.Exception error should be fixed in the 10.9 Enterprise.&amp;nbsp; There was another error exporting the PDF though that came up, but should also be fixed in 10.9.&lt;/P&gt;&lt;P&gt;These can be fixed by installing the following patches:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/download/7834" target="_blank"&gt;https://support.esri.com/en/download/7834&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/download/7868" target="_blank"&gt;https://support.esri.com/en/download/7868&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Nov 2021 16:26:57 GMT</pubDate>
    <dc:creator>MatthewMuehlhauser</dc:creator>
    <dc:date>2021-11-09T16:26:57Z</dc:date>
    <item>
      <title>layout.exportToPDF() runs indefinitely</title>
      <link>https://community.esri.com/t5/python-questions/layout-exporttopdf-runs-indefinitely/m-p/1081085#M61827</link>
      <description>&lt;P&gt;So, I'm in the process of re-writing our python scripts that are being served as Geoprocessing Services to Python 3 and hosted in ArcGIS Portal.&lt;/P&gt;&lt;P&gt;I'm running into an issue with the ArcGIS Pro 3.8 / 3.8.1 update where the Layout.exportToPDF() method will just continue to run indefinitely until I force the task to stop. The output creates a PDF that is 4KB in size, but it's obviously unable to be opened. This doesn't seem to be the case in the 3.7 version.&lt;/P&gt;&lt;P&gt;On our server which has ArcGIS Server 10.8.1 installed, I ran the script in the command line and it worked fine and exported the PDF properly. It's obviously a little difficult to compare 1 to 1 Server to Pro, but there is a difference in the Python version where Server 10.8.1 is using Python 3.6.10 and ArcGIS Pro 3.8.1 is using Python 3.7.10.&lt;/P&gt;&lt;P&gt;I've worked around this and published the python services regardless, but now when I try to submit a job through the server, I get the error :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;I&gt;esriJobMessageTypeInformative&lt;/I&gt;: java.lang.Exception: Could not service request.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Unfortunately, this doesn't seem to produce any error reports, however; there is a server log. But based on what I'm reading in the logs, it seems like it's a permissions error:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However; I'm not sure where the permission error would be coming from except maybe when it's trying to write the PDF and then send a link to download it?&amp;nbsp; And then how would I even grant permission?&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;So the latest update to Pro (3.8.2) fixed the export running forever. However; the Geoprocessing task is still having issues and giving the java error.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 22:19:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layout-exporttopdf-runs-indefinitely/m-p/1081085#M61827</guid>
      <dc:creator>MatthewMuehlhauser</dc:creator>
      <dc:date>2021-08-06T22:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: layout.exportToPDF() runs indefinitely</title>
      <link>https://community.esri.com/t5/python-questions/layout-exporttopdf-runs-indefinitely/m-p/1115299#M62936</link>
      <description>&lt;P&gt;The java.lang.Exception error should be fixed in the 10.9 Enterprise.&amp;nbsp; There was another error exporting the PDF though that came up, but should also be fixed in 10.9.&lt;/P&gt;&lt;P&gt;These can be fixed by installing the following patches:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/download/7834" target="_blank"&gt;https://support.esri.com/en/download/7834&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/download/7868" target="_blank"&gt;https://support.esri.com/en/download/7868&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 16:26:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layout-exporttopdf-runs-indefinitely/m-p/1115299#M62936</guid>
      <dc:creator>MatthewMuehlhauser</dc:creator>
      <dc:date>2021-11-09T16:26:57Z</dc:date>
    </item>
  </channel>
</rss>

