<?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 Print Widget Error: Cannot Read Properties of null (reading defaultValue) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-error-cannot-read-properties-of-null/m-p/1214779#M78771</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having issues setting up the Print Widget using API version 4.24. I am getting the following error in the browser console:&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Uncaught TypeError: Cannot read properties of null (reading 'defaultValue')&lt;/STRONG&gt;&lt;BR /&gt;See the attached screenshot for the full error.&lt;/P&gt;&lt;P&gt;My printer widget code is fairly simple:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;new Print({
            view: view,
            printServiceUrl: url,
            container: "print-container",
            templateOptions: {
                legendEnabled: false,
            }
        });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interestingly, when I use the printServiceUrl provided in the examples (&lt;A href="https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task" target="_blank" rel="noopener"&gt;https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task&lt;/A&gt;) the printing service works, but when I use our own REST API, I get the error mentioned above. Does anyone have any suggestions as to how we can resolve this issue, either through the JS code, or through the REST API?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Adrien French&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2022 19:19:27 GMT</pubDate>
    <dc:creator>AdrienFrench</dc:creator>
    <dc:date>2022-09-21T19:19:27Z</dc:date>
    <item>
      <title>Print Widget Error: Cannot Read Properties of null (reading defaultValue)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-error-cannot-read-properties-of-null/m-p/1214779#M78771</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having issues setting up the Print Widget using API version 4.24. I am getting the following error in the browser console:&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Uncaught TypeError: Cannot read properties of null (reading 'defaultValue')&lt;/STRONG&gt;&lt;BR /&gt;See the attached screenshot for the full error.&lt;/P&gt;&lt;P&gt;My printer widget code is fairly simple:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;new Print({
            view: view,
            printServiceUrl: url,
            container: "print-container",
            templateOptions: {
                legendEnabled: false,
            }
        });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interestingly, when I use the printServiceUrl provided in the examples (&lt;A href="https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task" target="_blank" rel="noopener"&gt;https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task&lt;/A&gt;) the printing service works, but when I use our own REST API, I get the error mentioned above. Does anyone have any suggestions as to how we can resolve this issue, either through the JS code, or through the REST API?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Adrien French&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 19:19:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-error-cannot-read-properties-of-null/m-p/1214779#M78771</guid>
      <dc:creator>AdrienFrench</dc:creator>
      <dc:date>2022-09-21T19:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget Error: Cannot Read Properties of null (reading defaultValue)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-error-cannot-read-properties-of-null/m-p/1214831#M78772</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/607410"&gt;@AdrienFrench&lt;/a&gt;,&amp;nbsp;sorry to hear about the issue. What version of Server is your print service using? Is it a custom print service, or out of the box from Server? If custom, was it created with ArcGIS Pro or ArcMap? Feel free to message me the URL to the print service (if it's accessible) and I can take a look as well.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 21:01:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-error-cannot-read-properties-of-null/m-p/1214831#M78772</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2022-09-21T21:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget Error: Cannot Read Properties of null (reading defaultValue)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-error-cannot-read-properties-of-null/m-p/1228288#M79229</link>
      <description>&lt;P&gt;Apologies for the (very) late reply. We managed to resolve the situation, though I'm not sure why. We simply created a new print service and made sure to set all the default options, and that seems to have worked.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 12:54:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-error-cannot-read-properties-of-null/m-p/1228288#M79229</guid>
      <dc:creator>AdrienFrench</dc:creator>
      <dc:date>2022-11-03T12:54:49Z</dc:date>
    </item>
  </channel>
</rss>

