<?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: Error Submitting Job: geoprocessing task wont complete in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-submitting-job-geoprocessing-task-wont/m-p/654684#M61049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the info about the geoprocessor. Indeed, I can now see (and retrieve) the generated PDF when using the geoprocessing task through the services interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To test parameter input, I have written the exact values to the console (see code below), then copied and pasted them into the services interface - this is where I get a "esriJobSucceeded" status back. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var params = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "xMin": map.extent.xmin,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "yMin": map.extent.ymin,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "xMax": map.extent.xmax,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "yMax": map.extent.ymax,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Spatial_Reference": map.spatialReference.wkid,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Map_Scale": esri.geometry.getScale(map),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Visiblelayers": dojo.toJson(visiblelayers),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Layout": dijit.byId("mapLayout").value,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Include_Attributes": dijit.byId("incAttribs").checked,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Map_Title": dijit.byId("mapTitle").value,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "PointGraphics": getFeatureSet("point"), // optional
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "LineGraphics": getFeatureSet("polyline"), // optional
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "PolyGraphics": getFeatureSet("polygon") // optional
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp; 
&amp;nbsp; console.log("PDF PARAMETERS");
&amp;nbsp; console.log(map.extent.xmin);
&amp;nbsp; console.log(map.extent.ymin);
&amp;nbsp; console.log(map.extent.xmax);
&amp;nbsp; console.log(map.extent.ymax);
&amp;nbsp; console.log(map.spatialReference.wkid);
&amp;nbsp; console.log(esri.geometry.getScale(map));
&amp;nbsp; console.log(dojo.toJson(visiblelayers));
&amp;nbsp; console.log(dijit.byId("mapLayout").value);
&amp;nbsp; console.log(dijit.byId("incAttribs").checked);
&amp;nbsp; console.log(dijit.byId("mapTitle").value);
&amp;nbsp; console.log(getFeatureSet("point"));
&amp;nbsp; console.log(getFeatureSet("polyline"));
&amp;nbsp; console.log(getFeatureSet("polygon"));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do use the getResultData function, but before that even fires, I check the status using the statusCallback as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function pdfStatusCallback(jobInfo) {
&amp;nbsp; console.log(jobInfo.jobStatus);
&amp;nbsp; if (jobInfo.jobStatus === "esriJobFailed") {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pdfErrorCallback();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
 }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That console statement is never fired. So basically, the task is not even being sent to the service as expected (which would hint at a parameter issue like you say), but I cant see how since I am successfully using the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;same parameters&lt;/SPAN&gt;&lt;SPAN&gt; using the services interface..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still stumped!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Richard.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 03:44:18 GMT</pubDate>
    <dc:creator>RichardKaufholz</dc:creator>
    <dc:date>2021-12-12T03:44:18Z</dc:date>
    <item>
      <title>Error Submitting Job: geoprocessing task wont complete</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-submitting-job-geoprocessing-task-wont/m-p/654682#M61047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have setup a geoprocessing task (a python script) that generates a PDF based on a map document "template". The script takes a number of arguments, including map extent, SR, visible layers, etc. (the script is actually the "Export PDF web application and GP service sample" from David Spriggs).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run this from ArcCatalog (as a tool) and enter some values, the tool runs and the PDF is created at my specified location on the local disk. &lt;/SPAN&gt;&lt;STRONG&gt;However&lt;/STRONG&gt;&lt;SPAN&gt;, when I access and run this very same task from my JSPAI application, it simply returns the error: "Error Submitting Job" (the error stack just points to the JSAPI - using v2.2).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have setup a proxy and this seems to work fine (I get a 200 status) when submitting the task. The parameters are definitely correct, as I have written them to the console, then copied and pasted them in the tool dialog (via ArcCatalog) and the tool runs fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To test further, I used the SubmitJob page through the rest service directory. Again, I entered all the values and the results come back saying the task is complete. &lt;/SPAN&gt;&lt;STRONG&gt;However&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;, the PDF created is not located in the directory specified in the python script, but at some non-existent location (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;/arcgisjobs/exportpdf_gpserver/j07d98f158f774503be941bcccedce974/scratch/Map_test6.pdf).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, is it that the GP task ignores the file paths of the original script and uses a setting of its own to save the new file? If so, where is that setting? Or is that just a temp path used by the rest service interface? Or am I totally confused?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help or suggestions welcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Richard.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. It also might be worth noting that the GP error I get comes back very fast. When the tool runs successfully from arccatalog it can take up to a minute. So I am assuming the problem is "early" in the task (i.e. connection, variables, etc.) rather than in the task itself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 12:25:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-submitting-job-geoprocessing-task-wont/m-p/654682#M61047</guid>
      <dc:creator>RichardKaufholz</dc:creator>
      <dc:date>2011-04-14T12:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error Submitting Job: geoprocessing task wont complete</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-submitting-job-geoprocessing-task-wont/m-p/654683#M61048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;I have setup a geoprocessing task (a python script) that generates a PDF based on a map document "template". The script takes a number of arguments, including map extent, SR, visible layers, etc. (the script is actually the "Export PDF web application and GP service sample" from David Spriggs).&lt;BR /&gt;&lt;BR /&gt;When I run this from ArcCatalog (as a tool) and enter some values, the tool runs and the PDF is created at my specified location on the local disk. &lt;STRONG&gt;However&lt;/STRONG&gt;, when I access and run this very same task from my JSPAI application, it simply returns the error: "Error Submitting Job" (the error stack just points to the JSAPI - using v2.2).&lt;BR /&gt;&lt;BR /&gt;I have setup a proxy and this seems to work fine (I get a 200 status) when submitting the task. The parameters are definitely correct, as I have written them to the console, then copied and pasted them in the tool dialog (via ArcCatalog) and the tool runs fine.&lt;BR /&gt;&lt;BR /&gt;To test further, I used the SubmitJob page through the rest service directory. Again, I entered all the values and the results come back saying the task is complete. &lt;STRONG&gt;However&lt;/STRONG&gt;, the PDF created is not located in the directory specified in the python script, but at some non-existent location (http://&amp;lt;server&amp;gt;/arcgisjobs/exportpdf_gpserver/j07d98f158f774503be941bcccedce974/scratch/Map_test6.pdf).&lt;BR /&gt;&lt;BR /&gt;So, is it that the GP task ignores the file paths of the original script and uses a setting of its own to save the new file? If so, where is that setting? Or is that just a temp path used by the rest service interface? Or am I totally confused?&lt;BR /&gt;&lt;BR /&gt;Any help or suggestions welcome.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Richard.&lt;BR /&gt;&lt;BR /&gt;P.S. It also might be worth noting that the GP error I get comes back very fast. When the tool runs successfully from arccatalog it can take up to a minute. So I am assuming the problem is "early" in the task (i.e. connection, variables, etc.) rather than in the task itself.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Any GP outputs run through ArcGIS server will be put in ArcGIS server's Jobs Directory whether you specify or not in your python script. It take the following format: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;/Jobs directory/subFolder (your GP is located) if any/GP service name /JobID/your output. So the location you mentioned &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;/arcgisjobs/exportpdf_gpserver/j07d98f158f774503be941bcccedce974/scratch/Map_test6.pdf. actually did exist. And that is a good thing. It means that your gp actually worked. You can get your PDF by using GP getResultData(jobId, parameterName, callback?, errback?)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;method. Mostly likely your failure is due to you do not set your parameters correctly in your code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 13:07:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-submitting-job-geoprocessing-task-wont/m-p/654683#M61048</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-04-14T13:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error Submitting Job: geoprocessing task wont complete</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-submitting-job-geoprocessing-task-wont/m-p/654684#M61049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the info about the geoprocessor. Indeed, I can now see (and retrieve) the generated PDF when using the geoprocessing task through the services interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To test parameter input, I have written the exact values to the console (see code below), then copied and pasted them into the services interface - this is where I get a "esriJobSucceeded" status back. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var params = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "xMin": map.extent.xmin,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "yMin": map.extent.ymin,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "xMax": map.extent.xmax,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "yMax": map.extent.ymax,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Spatial_Reference": map.spatialReference.wkid,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Map_Scale": esri.geometry.getScale(map),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Visiblelayers": dojo.toJson(visiblelayers),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Layout": dijit.byId("mapLayout").value,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Include_Attributes": dijit.byId("incAttribs").checked,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Map_Title": dijit.byId("mapTitle").value,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "PointGraphics": getFeatureSet("point"), // optional
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "LineGraphics": getFeatureSet("polyline"), // optional
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "PolyGraphics": getFeatureSet("polygon") // optional
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp; 
&amp;nbsp; console.log("PDF PARAMETERS");
&amp;nbsp; console.log(map.extent.xmin);
&amp;nbsp; console.log(map.extent.ymin);
&amp;nbsp; console.log(map.extent.xmax);
&amp;nbsp; console.log(map.extent.ymax);
&amp;nbsp; console.log(map.spatialReference.wkid);
&amp;nbsp; console.log(esri.geometry.getScale(map));
&amp;nbsp; console.log(dojo.toJson(visiblelayers));
&amp;nbsp; console.log(dijit.byId("mapLayout").value);
&amp;nbsp; console.log(dijit.byId("incAttribs").checked);
&amp;nbsp; console.log(dijit.byId("mapTitle").value);
&amp;nbsp; console.log(getFeatureSet("point"));
&amp;nbsp; console.log(getFeatureSet("polyline"));
&amp;nbsp; console.log(getFeatureSet("polygon"));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do use the getResultData function, but before that even fires, I check the status using the statusCallback as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function pdfStatusCallback(jobInfo) {
&amp;nbsp; console.log(jobInfo.jobStatus);
&amp;nbsp; if (jobInfo.jobStatus === "esriJobFailed") {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pdfErrorCallback();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
 }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That console statement is never fired. So basically, the task is not even being sent to the service as expected (which would hint at a parameter issue like you say), but I cant see how since I am successfully using the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;same parameters&lt;/SPAN&gt;&lt;SPAN&gt; using the services interface..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still stumped!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Richard.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:44:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-submitting-job-geoprocessing-task-wont/m-p/654684#M61049</guid>
      <dc:creator>RichardKaufholz</dc:creator>
      <dc:date>2021-12-12T03:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error Submitting Job: geoprocessing task wont complete</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-submitting-job-geoprocessing-task-wont/m-p/654685#M61050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi..&lt;BR /&gt;&lt;BR /&gt;Thanks for the info about the geoprocessor. Indeed, I can now see (and retrieve) the generated PDF when using the geoprocessing task through the services interface.&lt;BR /&gt;&lt;BR /&gt;To test parameter input, I have written the exact values to the console (see code below), then copied and pasted them into the services interface - this is where I get a "esriJobSucceeded" status back. &lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var params = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "xMin": map.extent.xmin,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "yMin": map.extent.ymin,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "xMax": map.extent.xmax,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "yMax": map.extent.ymax,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Spatial_Reference": map.spatialReference.wkid,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Map_Scale": esri.geometry.getScale(map),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Visiblelayers": dojo.toJson(visiblelayers),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Layout": dijit.byId("mapLayout").value,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Include_Attributes": dijit.byId("incAttribs").checked,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Map_Title": dijit.byId("mapTitle").value,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "PointGraphics": getFeatureSet("point"), // optional
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "LineGraphics": getFeatureSet("polyline"), // optional
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "PolyGraphics": getFeatureSet("polygon") // optional
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp; 
&amp;nbsp; console.log("PDF PARAMETERS");
&amp;nbsp; console.log(map.extent.xmin);
&amp;nbsp; console.log(map.extent.ymin);
&amp;nbsp; console.log(map.extent.xmax);
&amp;nbsp; console.log(map.extent.ymax);
&amp;nbsp; console.log(map.spatialReference.wkid);
&amp;nbsp; console.log(esri.geometry.getScale(map));
&amp;nbsp; console.log(dojo.toJson(visiblelayers));
&amp;nbsp; console.log(dijit.byId("mapLayout").value);
&amp;nbsp; console.log(dijit.byId("incAttribs").checked);
&amp;nbsp; console.log(dijit.byId("mapTitle").value);
&amp;nbsp; console.log(getFeatureSet("point"));
&amp;nbsp; console.log(getFeatureSet("polyline"));
&amp;nbsp; console.log(getFeatureSet("polygon"));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;I do use the getResultData function, but before that even fires, I check the status using the statusCallback as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function pdfStatusCallback(jobInfo) {
&amp;nbsp; console.log(jobInfo.jobStatus);
&amp;nbsp; if (jobInfo.jobStatus === "esriJobFailed") {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pdfErrorCallback();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
 }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;That console statement is never fired. So basically, the task is not even being sent to the service as expected (which would hint at a parameter issue like you say), but I cant see how since I am successfully using the &lt;SPAN style="font-style:italic;"&gt;same parameters&lt;/SPAN&gt; using the services interface..&lt;BR /&gt;&lt;BR /&gt;Still stumped!&lt;BR /&gt;&lt;BR /&gt;Richard.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Look at your GP service through Service directory. It should list all the parameters. Use it as a guide to define your parameters. I have a code sample listed at this thread: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/27763-Problem-with-Geoprocessing-Service" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/27763-Problem-with-Geoprocessing-Service&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:44:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-submitting-job-geoprocessing-task-wont/m-p/654685#M61050</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2021-12-12T03:44:21Z</dc:date>
    </item>
  </channel>
</rss>

