<?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 JS API 4.15: Print template issue in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213523#M19776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to migrate to JS API 4.15 but noticed an issue with&amp;nbsp;Print Widget: it does not honor the print templates from&amp;nbsp;my 'Export Web Map' GPServer anymore.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an extract from the REST API:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="488216" alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/488216_Capture d’écran 2020-04-10 à 12.55.36.png" /&gt;&lt;/P&gt;&lt;P&gt;Print widget properly displays them just like it used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="488217" alt="" class="image-2 jive-image" height="82" src="/legacyfs/online/488217_Capture d’écran 2020-04-10 à 12.57.07.png" width="377" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when Posting the job, the following message is logged:&lt;/P&gt;&lt;P&gt;"dojo.js:253 [esri.core.Accessor] Accessor#set 'A4_Paysage' is not a valid value for this property, only the following values are valid: 'map-only', 'a3-landscape', 'a3-portrait', 'a4-landscape', 'a4-portrait', 'letter-ansi-a-landscape', 'letter-ansi-a-portrait', 'tabloid-ansi-b-landscape', 'tabloid-ansi-b-portrait'"&lt;/P&gt;&lt;P&gt;And&amp;nbsp;&lt;SPAN style="color: #ffffff; font-size: 11px;"&gt;MAP&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="" style="font-weight: bold; margin-right: 0.25em;"&gt;Layout_Template:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 11px !important; margin-top: 1px; margin-right: 1em;"&gt;MAP_ONLY&lt;/DIV&gt;&lt;P&gt;is sent rather than "A4_Paysage".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the release notes, there had been somes changes in the Print widget:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/release-notes/" title="https://developers.arcgis.com/javascript/latest/guide/release-notes/"&gt;Release notes for 4.15 | ArcGIS API for JavaScript 4.15&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;I don't think that it means that this workflow is unsupported anymore, doesn't it ?&lt;/P&gt;&lt;P&gt;In the &lt;A _jive_internal="true" href="https://community.esri.com/discussion/TemplateOptions | ArcGIS API for JavaScript 4.15"&gt;layout&lt;/A&gt; property of the templateOptions, it is stated "&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;The print service provides out-of-the-box templates listed in possible values. The server administrator can add additional templates to the print service.". So if &lt;SPAN&gt;server administrator can add additional templates, JS API should accept them specially if it has been fetched from the service configuration.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;SPAN&gt;This workflow used to work fine in previous versions 4.13 and 4.14.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did I miss anything ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Apr 2020 11:09:42 GMT</pubDate>
    <dc:creator>NicolasGIS</dc:creator>
    <dc:date>2020-04-10T11:09:42Z</dc:date>
    <item>
      <title>JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213523#M19776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to migrate to JS API 4.15 but noticed an issue with&amp;nbsp;Print Widget: it does not honor the print templates from&amp;nbsp;my 'Export Web Map' GPServer anymore.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an extract from the REST API:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="488216" alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/488216_Capture d’écran 2020-04-10 à 12.55.36.png" /&gt;&lt;/P&gt;&lt;P&gt;Print widget properly displays them just like it used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="488217" alt="" class="image-2 jive-image" height="82" src="/legacyfs/online/488217_Capture d’écran 2020-04-10 à 12.57.07.png" width="377" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when Posting the job, the following message is logged:&lt;/P&gt;&lt;P&gt;"dojo.js:253 [esri.core.Accessor] Accessor#set 'A4_Paysage' is not a valid value for this property, only the following values are valid: 'map-only', 'a3-landscape', 'a3-portrait', 'a4-landscape', 'a4-portrait', 'letter-ansi-a-landscape', 'letter-ansi-a-portrait', 'tabloid-ansi-b-landscape', 'tabloid-ansi-b-portrait'"&lt;/P&gt;&lt;P&gt;And&amp;nbsp;&lt;SPAN style="color: #ffffff; font-size: 11px;"&gt;MAP&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="" style="font-weight: bold; margin-right: 0.25em;"&gt;Layout_Template:&lt;/DIV&gt;&lt;DIV class="" style="font-size: 11px !important; margin-top: 1px; margin-right: 1em;"&gt;MAP_ONLY&lt;/DIV&gt;&lt;P&gt;is sent rather than "A4_Paysage".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the release notes, there had been somes changes in the Print widget:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/release-notes/" title="https://developers.arcgis.com/javascript/latest/guide/release-notes/"&gt;Release notes for 4.15 | ArcGIS API for JavaScript 4.15&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;I don't think that it means that this workflow is unsupported anymore, doesn't it ?&lt;/P&gt;&lt;P&gt;In the &lt;A _jive_internal="true" href="https://community.esri.com/discussion/TemplateOptions | ArcGIS API for JavaScript 4.15"&gt;layout&lt;/A&gt; property of the templateOptions, it is stated "&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;The print service provides out-of-the-box templates listed in possible values. The server administrator can add additional templates to the print service.". So if &lt;SPAN&gt;server administrator can add additional templates, JS API should accept them specially if it has been fetched from the service configuration.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;SPAN&gt;This workflow used to work fine in previous versions 4.13 and 4.14.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did I miss anything ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2020 11:09:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213523#M19776</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2020-04-10T11:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213524#M19777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for&amp;nbsp;reporting this, Nicholas. This workflow should certainly still be supported. Is your print service publicly accessible for testing? If so, could you provide the URL? Feel free to message it to me directly if you do not want to post it here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2020 20:26:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213524#M19777</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-04-10T20:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213525#M19778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Happy to PM you the URL but can't find how to do so on Geonet !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2020 20:32:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213525#M19778</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2020-04-10T20:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213526#M19779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No worries, I just messaged you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2020 21:09:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213526#M19779</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-04-10T21:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213527#M19780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff;"&gt;Update: It's looking like a bug on our end due to more strictness with&amp;nbsp;the PrintTemplate class. We're going to get this fixed. I haven't been able to find a workaround yet, but if I do, I will reply back with this information. When the fix is in, you can check it out on &lt;A href="https://github.com/Esri/feedback-js-api-next"&gt;/next&lt;/A&gt; (will post back here when it's ready on /next as well). And thanks again for reporting and catching this.&lt;/SPAN&gt;&lt;BR data-jive-statusinputadd="true" data-jive-truncation-flag="true" style="color: #222222;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2020 21:57:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213527#M19780</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-04-10T21:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213528#M19781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this bug mean that you cannot have custom page sizes in your print template or just not custom print template names?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2020 20:12:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213528#M19781</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2020-04-13T20:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213529#M19782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought this bug was just related to custom print template names but it seems trickier than that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I published again my custom "&lt;SPAN style="background-color: #ffffff;"&gt;Export Web Map" GPServer using names in the following list of values:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;'map-only', 'a3-landscape', 'a3-portrait', 'a4-landscape', 'a4-portrait', 'letter-ansi-a-landscape', 'letter-ansi-a-portrait', 'tabloid-ansi-b-landscape', 'tabloid-ansi-b-portrait'"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Then REST API looked like the following:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;IMG __jive_id="488455" alt="" class="jive-emoji image-1 jive-image" height="152" src="/legacyfs/online/488455_Capture d’écran 2020-04-14 à 10.07.37.png" width="506" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;But the widget is translating those values and&amp;nbsp;formatting&amp;nbsp;them !&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;So if I leave my browser in French, I have the following value:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;IMG __jive_id="488468" alt="" class="jive-emoji image-2 jive-image" height="54" src="/legacyfs/online/488468_Capture d’écran 2020-04-14 à 10.09.21.png" width="254" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;And if my browser is in English:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;IMG __jive_id="488469" alt="" class="image-3 jive-emoji jive-image" height="53" src="/legacyfs/online/488469_Capture d’écran 2020-04-14 à 10.10.22.png" width="249" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Then if I try to print, the following parameter is sent to the print service:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;IMG __jive_id="488470" alt="" class="jive-emoji image-4 jive-image" height="81" src="/legacyfs/online/488470_Capture d’écran 2020-04-14 à 10.11.23.png" width="380" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;So it's not "a4-landscape"&amp;nbsp;which is sent by the widget !&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Now the&amp;nbsp;JavaScript API does not complain anymore (no error logged) but&amp;nbsp;the print service does ! Indeed, Print service returns the following error:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL class="" style="color: #212121; font-weight: 400; font-size: 11px; padding-left: 12px;"&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;error&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;{code: 400, message: "Unable to complete operation.",…}&lt;/SPAN&gt;&lt;OL class="" style="padding-left: 12px;"&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;code&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;400&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;message&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;&lt;SPAN class="" style="color: #222222;"&gt;"&lt;/SPAN&gt;Unable to complete operation.&lt;SPAN class="" style="color: #222222;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;details&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;["Error executing tool. Export Web Map"]&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And having a look at the ArcGIS Server Manager log, the following error is logged:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Error executing tool. Export Web Map : ERROR 000800: The value is not a member of a3-landscape | a3-portrait | a4-landscape | a4-portrait | MAP_ONLY. ERROR 000800: The value is not a member of a3-landscape | a3-portrait | a4-landscape | a4-portrait | MAP_ONLY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I believe there is no way to have a custom print service with JS API 4.15, unless &lt;A href="https://community.esri.com/migrated-users/36951"&gt;Noah Sager&lt;/A&gt;‌ finds a workaround ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 08:15:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213529#M19782</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2020-04-14T08:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213530#M19783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On a side note &lt;A href="https://community.esri.com/migrated-users/36951"&gt;Noah Sager&lt;/A&gt;‌, I wanted to underline that those translations done by the Print widget can be&amp;nbsp;an issue with versions prior&amp;nbsp;to 4.15.&lt;/P&gt;&lt;P&gt;Indeed, after having renamed my templates, the print widget of my&amp;nbsp;app built with 4.14 was broken as well and also get the very same error 400 !&lt;/P&gt;&lt;P&gt;Fortunately, JS API seems to only translate those very specific values:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;'map-only', 'a3-landscape', 'a3-portrait', 'a4-landscape', 'a4-portrait', 'letter-ansi-a-landscape', 'letter-ansi-a-portrait', 'tabloid-ansi-b-landscape', 'tabloid-ansi-b-portrait'"&amp;nbsp;a&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;nd does not try to do some clever translation with "&lt;SPAN&gt;A4_Paysage" !&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 08:36:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213530#M19783</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2020-04-14T08:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213531#M19784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Nicolas GIS wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Indeed, after having renamed my templates, the print widget of my&amp;nbsp;app built with 4.14 was broken as well and also get the very same error 400 !&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm not sure I follow. So you renamed the templates from something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Choice List:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[ A3 Landscape, A3 Portrait, A4 Landscape, A4 Portrait, Letter ANSI A Landscape, Letter ANSI A Portrait, Tabloid ANSI B Landscape, Tabloid ANSI B Portrait, MAP_ONLY ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Choice List:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;['map-only', 'a3-landscape', 'a3-portrait', 'a4-landscape', 'a4-portrait', 'letter-ansi-a-landscape', 'letter-ansi-a-portrait', 'tabloid-ansi-b-landscape', 'tabloid-ansi-b-portrait`&lt;SPAN style="font-size: 14.4px;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this does not work with the 4.14 print widget? But custom names (e.g. not ones in the Choice List by default) do work fine?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 16:26:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213531#M19784</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-04-14T16:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213532#M19785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I renamed my templates from:&lt;/P&gt;&lt;P&gt;&lt;IMG height="198" src="/legacyfs/online/488628_Capture d’écran 2020-04-10 à 12.55.36.png" style="color: #000000;" width="744" /&gt;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;&lt;IMG height="194" src="/legacyfs/online/488629_Capture d’écran 2020-04-14 à 10.07.37.png" style="color: #000000;" width="646" /&gt;&lt;/P&gt;&lt;P&gt;in the hope to pleased JS API 4.15 accessor values list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I try to print with JS API 4.15 and did not get any javascript error but an ArcGIS Server one because the widget translated those values in French to "A4 (Paysage)" (cf. &lt;A href="https://raw.githubusercontent.com/Esri/arcgis-js-api/4.15.0/widgets/Print/nls/fr/Print.js"&gt;nls&lt;/A&gt; file) and in English to "A4 landscape" (cf. &lt;A href="https://raw.githubusercontent.com/Esri/arcgis-js-api/4.15.0/widgets/Print/nls/Print.js"&gt;nls&lt;/A&gt;). Thus the 400 errors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I try to print with JS API 4.14 and get the very same ArcGIS Server error.&lt;/P&gt;&lt;P&gt;So renaming my templates to "a3-landscape", "a3-portrait", "a4-landscape" and "a4-portrait" broke my JS API 4.14 app. I reverted back my print service with templates "A3_Paysage", "A3_Portrait",&amp;nbsp;&lt;SPAN&gt;"A4_Paysage", "A4_Portrait" and it worked again as those values are not translated by the widget.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does that make sense ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 16:49:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213532#M19785</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2020-04-14T16:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213533#M19786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gotcha. I will investigate.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 18:18:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213533#M19786</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-04-14T18:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213534#M19787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, it seems that this translation value has nothing to do with nls files as either in French or in English, "&lt;SPAN style="color: #222222; background-color: #ffffff;"&gt;A4 Landscape" is sent to the print service rather than "a4-landscape".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff;"&gt;Debugging a little, I found out that in "PrintTask" (task/PrintTask) "_getGpPrintParams" method, a call to tasks/support/layoutTemplate "toJSON" method is converting "a4-landscape" to "A4 Landscape" so nothing to do with nls indeed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff;"&gt;So one workaround is&amp;nbsp;to duplicate each template:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff;"&gt;- one to please JS API accessor ("a4-landscape")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff;"&gt;- one for the printing ("A4 Landscape")&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2020 07:27:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213534#M19787</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2020-04-15T07:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213535#M19788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Ok, w&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;hen you get a chance,&amp;nbsp;can you please test with &lt;STRONG&gt;/next&lt;/STRONG&gt; and let me know how it goes? The issue with custom template formats and layouts should be resolved, and if so, it will release&amp;nbsp;at 4.16 this summer.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FEsri%2Ffeedback-js-api-next" rel="nofollow" style="color: #287433; background-color: #ffffff; border: 0px; text-decoration: none; font-size: 14px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://github.com/Esri/feedback-js-api-next&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;And yes, behind the scenes we do&amp;nbsp;some&amp;nbsp;name convention formatting for the Esri default templates. This formatting ensures that printing will work well across the Esri platform and with different versions of the print service, but we will look to see if we can add this information to the documentation so that people know better what to expect.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2020 15:57:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213535#M19788</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-04-20T15:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213536#M19789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ! The initial issue is fixed in next.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2020 16:17:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213536#M19789</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2020-04-20T16:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213537#M19790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Noah, Is there a work around that we can apply until the fix is out?&lt;/P&gt;&lt;P&gt;Markos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2020 15:35:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213537#M19790</guid>
      <dc:creator>MKY</dc:creator>
      <dc:date>2020-04-21T15:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213538#M19791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markos. Unfortunately, I haven't found a workaround to using the Print widget with custom print templates. The only suggestion I have right now&amp;nbsp;is to use /next (&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FEsri%2Ffeedback-js-api-next" rel="nofollow" style="color: #287433; background-color: #ffffff; border: 0px; text-decoration: none; font-size: 14px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://github.com/Esri/feedback-js-api-next&lt;/A&gt;). I've been trying to think of a way to use RequestInterceptor (&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor"&gt;config | ArcGIS API for JavaScript 4.15&lt;/A&gt;&amp;nbsp;) but haven't figured out a solution there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2020 17:39:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213538#M19791</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-04-21T17:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.15: Print template issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213539#M19792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;mvolz47 wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this bug mean that you cannot have custom page sizes in your print template or just not custom print template names?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for not replying to this sooner. I believe the issue affects&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;custom page sizes as well, but I have not tested that to verify.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2020 17:41:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-15-print-template-issue/m-p/213539#M19792</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-04-21T17:41:21Z</dc:date>
    </item>
  </channel>
</rss>

