AnsweredAssumed Answered

How to getmessages on GpServer

Question asked by fandre12345 on May 15, 2014
Latest reply on May 19, 2014 by dhoneycutt-esristaff
Hi everyone,

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:

{
"jobId": "j5610ce97f1a04b2991a14bdb82ddc17b",
"jobStatus": "esriJobSucceeded",
"results": {

},
"inputs": {

},
"messages": [

]
}

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()):
    arcpy.AddReturnMessage(msg)
print "Fim teste"


How I can get all messages when I check jobstatus?[ATTACH=CONFIG]33839[/ATTACH]

Thx in advance

Attachments

Outcomes