<?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 Get Messages from Geoprocessing job. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-messages-from-geoprocessing-job/m-p/683875#M63658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I have a long running Geoprocessor task based on Python code on the server. I am starting the service with :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; var gp = new esri.tasks.Geoprocessor(url);
 gp.submitJob(inParams, function(completeStatus){...}, function(updateStatus){...}, function(failedStatus){...})&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was hoping to receive intermediate messages from the server in the updateStatus argument of the 2nd callback function passed in the submitJob(). That callback does get called many times while the job is executing but the status.messages&lt;I&gt;.description only contain a generic "Executing". Not the custom messages I intended to be sending by adding &lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.AddMessage("....") &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;within my Python code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the correct way to receive intermediate messages from a Python base Geoprocessing service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lew.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jan 2012 19:53:51 GMT</pubDate>
    <dc:creator>LewLadd</dc:creator>
    <dc:date>2012-01-04T19:53:51Z</dc:date>
    <item>
      <title>Get Messages from Geoprocessing job.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-messages-from-geoprocessing-job/m-p/683875#M63658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I have a long running Geoprocessor task based on Python code on the server. I am starting the service with :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; var gp = new esri.tasks.Geoprocessor(url);
 gp.submitJob(inParams, function(completeStatus){...}, function(updateStatus){...}, function(failedStatus){...})&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was hoping to receive intermediate messages from the server in the updateStatus argument of the 2nd callback function passed in the submitJob(). That callback does get called many times while the job is executing but the status.messages&lt;I&gt;.description only contain a generic "Executing". Not the custom messages I intended to be sending by adding &lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.AddMessage("....") &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;within my Python code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the correct way to receive intermediate messages from a Python base Geoprocessing service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lew.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 19:53:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-messages-from-geoprocessing-job/m-p/683875#M63658</guid>
      <dc:creator>LewLadd</dc:creator>
      <dc:date>2012-01-04T19:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get Messages from Geoprocessing job.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-messages-from-geoprocessing-job/m-p/683876#M63659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I solved the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I hadn't checked the "Show Messages" checkbox on the Parameters tab in the ArcGIS Server Manager when defining the geoprocessing service. I went back to edit the service and checked that checkbox and voila, messages are now available in the updatestatus callback.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lew.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 20:35:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-messages-from-geoprocessing-job/m-p/683876#M63659</guid>
      <dc:creator>LewLadd</dc:creator>
      <dc:date>2012-01-05T20:35:13Z</dc:date>
    </item>
  </channel>
</rss>

