<?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 How to getmessages on GpServer in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-to-getmessages-on-gpserver/m-p/479241#M16080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this code and I want to get the messages on my GpServer. But always when I run my job (GpServer) I dont receive any message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "jobId": "j5610ce97f1a04b2991a14bdb82ddc17b",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "jobStatus": "esriJobSucceeded",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "results": {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; },&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "inputs": {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; },&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "messages": [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;print "Inicio teste"
arcpy.SetProgressorLabel("Iteration: 1")
arcpy.SetProgressorPosition(1)
arcpy.AddMessage("Teste1")
arcpy.AddMessage("Teste2")
#time.sleep(5)
arcpy.SetProgressorLabel("Iteration: 2")
arcpy.SetProgressorPosition(50)
arcpy.AddMessage("Teste3")
#time.sleep(5)
arcpy.AddWarning("Warning")
arcpy.SetProgressorLabel("Iteration: 3")
arcpy.SetProgressorPosition(100)
arcpy.AddIDMessage("INFORMATIVE", 12, "aaaaaaaaaaaaaaa")
arcpy.AddError("Erro")
print arcpy.GetMessageCount()
print arcpy.GetMessages()
for msg in range(0, arcpy.GetMessageCount()):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddReturnMessage(msg)
print "Fim teste"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How I can get all messages when I check jobstatus?[ATTACH=CONFIG]33839[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:31:38 GMT</pubDate>
    <dc:creator>Andréde_Mattos_Ferraz</dc:creator>
    <dc:date>2021-12-12T16:31:38Z</dc:date>
    <item>
      <title>How to getmessages on GpServer</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-getmessages-on-gpserver/m-p/479241#M16080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this code and I want to get the messages on my GpServer. But always when I run my job (GpServer) I dont receive any message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "jobId": "j5610ce97f1a04b2991a14bdb82ddc17b",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "jobStatus": "esriJobSucceeded",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "results": {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; },&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "inputs": {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; },&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "messages": [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;print "Inicio teste"
arcpy.SetProgressorLabel("Iteration: 1")
arcpy.SetProgressorPosition(1)
arcpy.AddMessage("Teste1")
arcpy.AddMessage("Teste2")
#time.sleep(5)
arcpy.SetProgressorLabel("Iteration: 2")
arcpy.SetProgressorPosition(50)
arcpy.AddMessage("Teste3")
#time.sleep(5)
arcpy.AddWarning("Warning")
arcpy.SetProgressorLabel("Iteration: 3")
arcpy.SetProgressorPosition(100)
arcpy.AddIDMessage("INFORMATIVE", 12, "aaaaaaaaaaaaaaa")
arcpy.AddError("Erro")
print arcpy.GetMessageCount()
print arcpy.GetMessages()
for msg in range(0, arcpy.GetMessageCount()):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddReturnMessage(msg)
print "Fim teste"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How I can get all messages when I check jobstatus?[ATTACH=CONFIG]33839[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:31:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-getmessages-on-gpserver/m-p/479241#M16080</guid>
      <dc:creator>Andréde_Mattos_Ferraz</dc:creator>
      <dc:date>2021-12-12T16:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to getmessages on GpServer</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-getmessages-on-gpserver/m-p/479242#M16081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you specify you wanted to get messages in the Service Editor Parameters?&amp;nbsp; See &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/#/Parameters/005700000080000000/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/#/Parameters/005700000080000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 17:13:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-getmessages-on-gpserver/m-p/479242#M16081</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2014-05-15T17:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to getmessages on GpServer</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-getmessages-on-gpserver/m-p/479243#M16082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Did you specify you wanted to get messages in the Service Editor Parameters?&amp;nbsp; See &lt;A href="http://resources.arcgis.com/en/help/main/10.2/#/Parameters/005700000080000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/#/Parameters/005700000080000000/&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Works fine! Thx!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 17:33:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-getmessages-on-gpserver/m-p/479243#M16082</guid>
      <dc:creator>Andréde_Mattos_Ferraz</dc:creator>
      <dc:date>2014-05-15T17:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to getmessages on GpServer</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-getmessages-on-gpserver/m-p/479244#M16083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's possible to get progress info, or I need to cheat by AddMessage?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 10:43:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-getmessages-on-gpserver/m-p/479244#M16083</guid>
      <dc:creator>Andréde_Mattos_Ferraz</dc:creator>
      <dc:date>2014-05-19T10:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to getmessages on GpServer</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-getmessages-on-gpserver/m-p/479245#M16084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you'll have to cheat with AddMessages.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 16:15:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-getmessages-on-gpserver/m-p/479245#M16084</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2014-05-19T16:15:55Z</dc:date>
    </item>
  </channel>
</rss>

