<?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: Export to PDF Report using Python shows OSError: Report: Unable to write PDF to location in ArcGIS Pro 2.6.1 in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/export-to-pdf-report-using-python-shows-oserror/m-p/1089135#M44462</link>
    <description>&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;I found this thread because I have the same problem as described above.&lt;/P&gt;&lt;P&gt;The script for printing on the server that I found and modified from:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-enterprise/mapping/print-reports-from-arcgis-enterprise-web-apps/" target="_blank" rel="noopener"&gt;https://www.esri.com/arcgis-blog/products/arcgis-enterprise/mapping/print-reports-from-arcgis-enterprise-web-apps/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;works on my Pro machine but when I publish a WebTool on portal it dies out with the above error:&lt;/P&gt;&lt;P&gt;OSError: Report: Unable to write PDF to location. I have tried modifying the script and running it standalone on the server with the same result.&lt;/P&gt;&lt;P&gt;The only thing is that it actually produces the report with only one blank page (my report is a little bit clumsy made since is only a POC).&lt;/P&gt;&lt;P&gt;Arcgis Pro is 2.8.2&lt;/P&gt;&lt;P&gt;Arcgis Portal and Server are 10.8.1 and are federated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Bye Andrej&lt;/P&gt;</description>
    <pubDate>Sat, 14 Aug 2021 19:22:34 GMT</pubDate>
    <dc:creator>atrunkl</dc:creator>
    <dc:date>2021-08-14T19:22:34Z</dc:date>
    <item>
      <title>Export to PDF Report using Python shows OSError: Report: Unable to write PDF to location in ArcGIS Pro 2.6.1</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-to-pdf-report-using-python-shows-oserror/m-p/641421#M28545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to use the python script as below to export a report to PDF document. The code seems to be working fine for ArcGIS Pro 2.3 however the same code shows error unable to write to location with ArcGIS Pro 2.6.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps to reproduce:&lt;/P&gt;&lt;P&gt;1. Create a report in ArcGIS Pro 2.6.1&lt;/P&gt;&lt;P&gt;2. In the Python console, try the below code:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;arpx = arcpy.mp.ArcGISProject(r"C:\Users\Administrator\Documents\ArcGIS\Projects\PrintTemplate\PrintTemplate.aprx")&lt;/P&gt;&lt;P&gt;report = arpx.listReports()[0]&lt;/P&gt;&lt;P&gt;report.exportToPDF(r"c:\test.pdf")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Error as shown in the below screenshot:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/508583_Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with different systems, and even tried granting full access but no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate if anyone has faced this issue and can provide some workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2020 14:30:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-to-pdf-report-using-python-shows-oserror/m-p/641421#M28545</guid>
      <dc:creator>ManishPatel</dc:creator>
      <dc:date>2020-09-25T14:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Export to PDF Report using Python shows OSError: Report: Unable to write PDF to location in ArcGIS Pro 2.6.1</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-to-pdf-report-using-python-shows-oserror/m-p/641422#M28546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this before trying to export:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;pdfPath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"c:\test.pdf"&lt;/SPAN&gt;
pdfDoc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PDFDocumentCreate&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pdfPath&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then run your&amp;nbsp;export as:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;report&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exportToPDF&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pdfDoc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:15:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-to-pdf-report-using-python-shows-oserror/m-p/641422#M28546</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-12-12T03:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export to PDF Report using Python shows OSError: Report: Unable to write PDF to location in ArcGIS Pro 2.6.1</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-to-pdf-report-using-python-shows-oserror/m-p/641423#M28547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="" data-userid="339735" data-username="agelfert" href="https://community.esri.com/people/agelfert"&gt;Arne Gelfert&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion, it seems there environment issue, when I tried to use a different location it seems to be working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2020 12:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-to-pdf-report-using-python-shows-oserror/m-p/641423#M28547</guid>
      <dc:creator>ManishPatel</dc:creator>
      <dc:date>2020-10-12T12:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Export to PDF Report using Python shows OSError: Report: Unable to write PDF to location in ArcGIS Pro 2.6.1</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-to-pdf-report-using-python-shows-oserror/m-p/1089135#M44462</link>
      <description>&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;I found this thread because I have the same problem as described above.&lt;/P&gt;&lt;P&gt;The script for printing on the server that I found and modified from:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-enterprise/mapping/print-reports-from-arcgis-enterprise-web-apps/" target="_blank" rel="noopener"&gt;https://www.esri.com/arcgis-blog/products/arcgis-enterprise/mapping/print-reports-from-arcgis-enterprise-web-apps/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;works on my Pro machine but when I publish a WebTool on portal it dies out with the above error:&lt;/P&gt;&lt;P&gt;OSError: Report: Unable to write PDF to location. I have tried modifying the script and running it standalone on the server with the same result.&lt;/P&gt;&lt;P&gt;The only thing is that it actually produces the report with only one blank page (my report is a little bit clumsy made since is only a POC).&lt;/P&gt;&lt;P&gt;Arcgis Pro is 2.8.2&lt;/P&gt;&lt;P&gt;Arcgis Portal and Server are 10.8.1 and are federated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Bye Andrej&lt;/P&gt;</description>
      <pubDate>Sat, 14 Aug 2021 19:22:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-to-pdf-report-using-python-shows-oserror/m-p/1089135#M44462</guid>
      <dc:creator>atrunkl</dc:creator>
      <dc:date>2021-08-14T19:22:34Z</dc:date>
    </item>
  </channel>
</rss>

