<?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 GeoProcessor submitJob is not triggering error callback, but instead throwing a Type Error in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geoprocessor-submitjob-is-not-triggering-error/m-p/218431#M20285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having trouble with the Geoprocessor.submitJob function not triggering the error callback when there is an error, instead it throws a TypeError.&amp;nbsp; I am attaching a screenshot of the issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently we are using a service proxy to access a service and it occasionally throws errors regarding Invalid Parameters (we opened a ticket with Esri Customer Support on this and they said it was a known bug with those proxies), however, when this happens or when there is an error with the submitJob, I would like to be able to catch it so I can show my users a nice error message, but currently it is not triggering anything I can catch, in either the status callback or the error callback.&amp;nbsp; Below is the snippet I am using for the submitJob call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;geoprocessor.submitJob(params, function (result) {
&amp;nbsp; // calls geoprocessor.getResultData here when this works
}, function (status) {
&amp;nbsp; console.debug(status);
}, function (error) {
&amp;nbsp; console.log('Something Happened', error);
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works most of the time, the problem is that when it fails, it does not trigger the error callback at all or even the status callback, just throws TypeError d is not&amp;nbsp; function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I am using 3.15, tried 3.14 and got the same results although I don't remember having this issue in the past.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:40:15 GMT</pubDate>
    <dc:creator>RobertWinterbottom</dc:creator>
    <dc:date>2021-12-11T10:40:15Z</dc:date>
    <item>
      <title>GeoProcessor submitJob is not triggering error callback, but instead throwing a Type Error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geoprocessor-submitjob-is-not-triggering-error/m-p/218431#M20285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having trouble with the Geoprocessor.submitJob function not triggering the error callback when there is an error, instead it throws a TypeError.&amp;nbsp; I am attaching a screenshot of the issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently we are using a service proxy to access a service and it occasionally throws errors regarding Invalid Parameters (we opened a ticket with Esri Customer Support on this and they said it was a known bug with those proxies), however, when this happens or when there is an error with the submitJob, I would like to be able to catch it so I can show my users a nice error message, but currently it is not triggering anything I can catch, in either the status callback or the error callback.&amp;nbsp; Below is the snippet I am using for the submitJob call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;geoprocessor.submitJob(params, function (result) {
&amp;nbsp; // calls geoprocessor.getResultData here when this works
}, function (status) {
&amp;nbsp; console.debug(status);
}, function (error) {
&amp;nbsp; console.log('Something Happened', error);
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works most of the time, the problem is that when it fails, it does not trigger the error callback at all or even the status callback, just throws TypeError d is not&amp;nbsp; function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I am using 3.15, tried 3.14 and got the same results although I don't remember having this issue in the past.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:40:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geoprocessor-submitjob-is-not-triggering-error/m-p/218431#M20285</guid>
      <dc:creator>RobertWinterbottom</dc:creator>
      <dc:date>2021-12-11T10:40:15Z</dc:date>
    </item>
  </channel>
</rss>

