<?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 web map Internal Server Error 500 with specific layer in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/export-web-map-internal-server-error-500-with/m-p/1174621#M33152</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/152457"&gt;@arahman_mdmajid&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for the first issue, this what I'd recommend you to do:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;log on to the server machine (that is hosting the print service)&amp;nbsp;&lt;STRONG&gt;as the &lt;A href="https://enterprise.arcgis.com/en/server/latest/install/windows/the-arcgis-server-account.htm" target="_self"&gt;ArcGIS SOC user&lt;/A&gt;&lt;/STRONG&gt;,&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;open a web browser&lt;/LI&gt;&lt;LI&gt;try to access services from&amp;nbsp;&lt;A href="https://services.arcgisonline.com/ArcGIS/rest/services" target="_blank"&gt;https://services.arcgisonline.com/ArcGIS/rest/services&lt;/A&gt;&amp;nbsp;&lt;STRONG&gt;without&lt;/STRONG&gt; it prompting you accept some certificates.&lt;/LI&gt;&lt;LI&gt;if it asks for certificates to accept or you can't access for some reasons, you need to check with your network/system admin to resolve this from your side.&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;please note that the 'Light gray' basemap is a 'vector tile service' where as World_Imagery is a cached map service. And they live in two different locations.&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on the 2nd one:&lt;/P&gt;&lt;P&gt;- do you have any proxy server in between your webapp and the print service?&lt;/P&gt;&lt;P&gt;one thing you can do is this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;open your browser's &lt;STRONG&gt;Developer Tools&lt;/STRONG&gt; and then switch to &lt;STRONG&gt;Network&lt;/STRONG&gt; tab,&lt;/LI&gt;&lt;LI&gt;click &lt;STRONG&gt;print&lt;/STRONG&gt; button from your web app&lt;/LI&gt;&lt;LI&gt;in the&amp;nbsp;&lt;STRONG&gt;Network&lt;/STRONG&gt; tab, look for the request made to the print service&lt;/LI&gt;&lt;LI&gt;look for the value for&amp;nbsp;&lt;STRONG&gt;WebMap_as_JSON&lt;/STRONG&gt; paramter... &lt;EM&gt;which should be a pretty large json string.&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;browse to your print service REST end point&lt;/LI&gt;&lt;LI&gt;copy/paste the&amp;nbsp;&lt;STRONG&gt;WebMap_as_JSON&lt;/STRONG&gt; string in there&lt;/LI&gt;&lt;LI&gt;execute it and see if it works&lt;/LI&gt;&lt;LI&gt;if it &lt;STRONG&gt;works&lt;/STRONG&gt;, that means there must the some kind of middleware such as proxy etc. is causing the issue&lt;/LI&gt;&lt;LI&gt;if it &lt;STRONG&gt;does NOT work&lt;/STRONG&gt;, please contact Esri Support with that json and they should be able to log a bug for that (if that turns out to be a bug) and we will look into this.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you will find this helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2022 15:48:17 GMT</pubDate>
    <dc:creator>TanuHoque</dc:creator>
    <dc:date>2022-05-17T15:48:17Z</dc:date>
    <item>
      <title>Export web map Internal Server Error 500 with specific layer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/export-web-map-internal-server-error-500-with/m-p/1174527#M33150</link>
      <description>&lt;P&gt;I used a secured web printing service in a custom application developed using ArcGIS JS API. It was working fine and was printing all layers present on the map. However, recently I started receiving 400 and 500 errors while executing the print functionality.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue 1: FeatureLayer, MapImageLayer, and GraphicsLayer are displayed on the map with ArcGIS Online basemap imagery as the basemap. When executing the print, it gives the error: Unable to complete the operation (400). Whenever I exchange the imagery with another basemap, like the Light Gray Canvas, the service generates a map. After inspecting the Server Log, I cannot connect to the ArcGIS Online imagery service due to an invalid certificate error, as seen in the image below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Connect Error webmap ArcGIS server 15 May 2022.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41468iCA1976D2DA7038E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Connect Error webmap ArcGIS server 15 May 2022.PNG" alt="Connect Error webmap ArcGIS server 15 May 2022.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue 2: There is a result graphics layer where I add features intersecting with the users' input feature. The print functionality works whenever the result has a few features added to the layer. But when there are many intersecting features in the result layer, the print function gives a&amp;nbsp;500 (Internal Server Error), as seen in the image below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="print internal server error 500.png" style="width: 928px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41474i39187DFEB780CACD/image-size/large?v=v2&amp;amp;px=999" role="button" title="print internal server error 500.png" alt="print internal server error 500.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I hide the results layer, the print functionality works again, so it seems like there is a problem with the result layer, but I am not sure what it is. Is there a limit to the number of features the print function can print?&lt;/P&gt;&lt;P&gt;The print service is published as a secure service on a standalone ArcGIS Server instance of version 10.6.1&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 13:41:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/export-web-map-internal-server-error-500-with/m-p/1174527#M33150</guid>
      <dc:creator>arahman_mdmajid</dc:creator>
      <dc:date>2022-05-17T13:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export web map Internal Server Error 500 with specific layer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/export-web-map-internal-server-error-500-with/m-p/1174621#M33152</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/152457"&gt;@arahman_mdmajid&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for the first issue, this what I'd recommend you to do:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;log on to the server machine (that is hosting the print service)&amp;nbsp;&lt;STRONG&gt;as the &lt;A href="https://enterprise.arcgis.com/en/server/latest/install/windows/the-arcgis-server-account.htm" target="_self"&gt;ArcGIS SOC user&lt;/A&gt;&lt;/STRONG&gt;,&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;open a web browser&lt;/LI&gt;&lt;LI&gt;try to access services from&amp;nbsp;&lt;A href="https://services.arcgisonline.com/ArcGIS/rest/services" target="_blank"&gt;https://services.arcgisonline.com/ArcGIS/rest/services&lt;/A&gt;&amp;nbsp;&lt;STRONG&gt;without&lt;/STRONG&gt; it prompting you accept some certificates.&lt;/LI&gt;&lt;LI&gt;if it asks for certificates to accept or you can't access for some reasons, you need to check with your network/system admin to resolve this from your side.&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;please note that the 'Light gray' basemap is a 'vector tile service' where as World_Imagery is a cached map service. And they live in two different locations.&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on the 2nd one:&lt;/P&gt;&lt;P&gt;- do you have any proxy server in between your webapp and the print service?&lt;/P&gt;&lt;P&gt;one thing you can do is this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;open your browser's &lt;STRONG&gt;Developer Tools&lt;/STRONG&gt; and then switch to &lt;STRONG&gt;Network&lt;/STRONG&gt; tab,&lt;/LI&gt;&lt;LI&gt;click &lt;STRONG&gt;print&lt;/STRONG&gt; button from your web app&lt;/LI&gt;&lt;LI&gt;in the&amp;nbsp;&lt;STRONG&gt;Network&lt;/STRONG&gt; tab, look for the request made to the print service&lt;/LI&gt;&lt;LI&gt;look for the value for&amp;nbsp;&lt;STRONG&gt;WebMap_as_JSON&lt;/STRONG&gt; paramter... &lt;EM&gt;which should be a pretty large json string.&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;browse to your print service REST end point&lt;/LI&gt;&lt;LI&gt;copy/paste the&amp;nbsp;&lt;STRONG&gt;WebMap_as_JSON&lt;/STRONG&gt; string in there&lt;/LI&gt;&lt;LI&gt;execute it and see if it works&lt;/LI&gt;&lt;LI&gt;if it &lt;STRONG&gt;works&lt;/STRONG&gt;, that means there must the some kind of middleware such as proxy etc. is causing the issue&lt;/LI&gt;&lt;LI&gt;if it &lt;STRONG&gt;does NOT work&lt;/STRONG&gt;, please contact Esri Support with that json and they should be able to log a bug for that (if that turns out to be a bug) and we will look into this.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you will find this helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 15:48:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/export-web-map-internal-server-error-500-with/m-p/1174621#M33152</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2022-05-17T15:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Export web map Internal Server Error 500 with specific layer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/export-web-map-internal-server-error-500-with/m-p/1174959#M33157</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2620"&gt;@TanuHoque&lt;/a&gt;&amp;nbsp;Thanks for the reply.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;UL&gt;&lt;LI&gt;try to access services from&amp;nbsp;&lt;A href="https://services.arcgisonline.com/ArcGIS/rest/services" target="_blank" rel="noopener"&gt;https://services.arcgisonline.com/ArcGIS/rest/services&lt;/A&gt;&amp;nbsp;&lt;STRONG&gt;without&lt;/STRONG&gt; it prompting you accept some certificates.&lt;/LI&gt;&lt;LI&gt;if it asks for certificates to accept or you can't access for some reasons, you need to check with your network/system admin to resolve this from your side.&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After talking to the network department about the ArcGIS Online URL, I opened it in an incognito window on my server where our ArcGIS Server is residing. It opened without prompting to accept the risk of no/invalid certificate.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="arcgis online basemap service.PNG" style="width: 550px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41574i5AF9F4F19296268A/image-size/large?v=v2&amp;amp;px=999" role="button" title="arcgis online basemap service.PNG" alt="arcgis online basemap service.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So I guess the issue is resolved for now. Is there a way to permanently add this to a whitelist that will trust this link directly and not prompt the user for invalid certificates?&lt;/P&gt;&lt;P&gt;For the second issue,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;- do you have any proxy server in between your webapp and the print service?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I do have a proxy server which I use to access these services. I used the&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-urlUtils.html" target="_self"&gt;urlUtils'&lt;/A&gt;&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-urlUtils.html#addProxyRule" target="_self"&gt;addProxyRule&lt;/A&gt;&amp;nbsp;method to add the service URL to our custom application.&lt;/P&gt;&lt;P&gt;I found the 'WebMap_as_JSON' and other parameters inside the error response.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="print task issue parameters 18 May 2022.PNG" style="width: 692px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41575i01FAC59DDC5F4E99/image-size/large?v=v2&amp;amp;px=999" role="button" title="print task issue parameters 18 May 2022.PNG" alt="print task issue parameters 18 May 2022.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Copied these parameters to the service in ArcGIS Server.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="print task issue input18 May 2022.PNG" style="width: 953px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41576i789010ADF3818C45/image-size/large?v=v2&amp;amp;px=999" role="button" title="print task issue input18 May 2022.PNG" alt="print task issue input18 May 2022.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Getting a blank screen after pressing the &lt;STRONG&gt;Execute Task (GET)&lt;/STRONG&gt; button, as shown below.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="print task issue output 18 May 2022.PNG" style="width: 534px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41577i41E61FA9A7D8C645/image-size/large?v=v2&amp;amp;px=999" role="button" title="print task issue output 18 May 2022.PNG" alt="print task issue output 18 May 2022.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also inspected the developer tool, and it is blank. What does this infer?&lt;/P&gt;&lt;P&gt;The same service generates results with the same layer but with lesser features in the result layer.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 07:34:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/export-web-map-internal-server-error-500-with/m-p/1174959#M33157</guid>
      <dc:creator>arahman_mdmajid</dc:creator>
      <dc:date>2022-05-18T07:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Export web map Internal Server Error 500 with specific layer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/export-web-map-internal-server-error-500-with/m-p/1176237#M33177</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2620"&gt;@TanuHoque&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can this be an issue with the webserver where the proxy application is hosted?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I came across &lt;A href="https://community.esri.com/t5/arcgis-web-appbuilder-questions/error-500-maximum-request-length-exceeded/m-p/1105070/highlight/true#M21412" target="_self"&gt;this&lt;/A&gt; post and modified some IIS configurations, like 'maxAllowedContentLength' and 'uploadReadAheadSize,' but still, the issue persists. The adjusted values can be seen below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="proxy uploadReadAheadSize IIS Config after.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41898i4136066F27A42B5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="proxy uploadReadAheadSize IIS Config after.png" alt="proxy uploadReadAheadSize IIS Config after.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="proxy maxAllowedContentLength IIS Config after.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41897iCFCF368C1EAAFB18/image-size/large?v=v2&amp;amp;px=999" role="button" title="proxy maxAllowedContentLength IIS Config after.png" alt="proxy maxAllowedContentLength IIS Config after.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There is &lt;A href="https://community.esri.com/t5/arcgis-rest-api-questions/export-web-map-task-json-length-limit/m-p/641764/highlight/true#M3129" target="_self"&gt;another post&lt;/A&gt; suggesting modifying server properties, like '&lt;SPAN class=""&gt;maxPostSize&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;',&amp;nbsp; '&lt;SPAN&gt;socMaxHeapSize&lt;/SPAN&gt;', and '&lt;SPAN&gt;appServerMaxHeapSize.' Will changing these properties affect the issue I am facing?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 12:11:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/export-web-map-internal-server-error-500-with/m-p/1176237#M33177</guid>
      <dc:creator>arahman_mdmajid</dc:creator>
      <dc:date>2022-05-22T12:11:38Z</dc:date>
    </item>
  </channel>
</rss>

