0

I'm trying to aid some of my other teams by improving the error handling when geoprocessing services are being called. In my code I'm handling errors however after publishing that code to the server 10.8. I cannot see any errors being written out under jobs\jobid URL of the REST API. Is there some specific standard I need to follow in order for messages to be written to ArcGIS Server REST API when looking at the status of a job?

  • 1
    Can I assume you mean you've put arcpy.AddError("Foo") in your Python script tool you've published, and you're not seeing that error? When you say jobs\jobID -- not sure what you're expecting. If indeed you're using AddError, this will get pushed into the messages of the execution (if you have the correct message level set) and the Server logs. – KHibma Aug 13 at 16:37
  • Thank you @KHibma the message level for the service is what the issue was. I just was not familiar with the setting! – MoxGoat Aug 13 at 17:35
1

Geoprocessing Services have 4 level of messages that can be returned and viewed during execution. If this setting is None, no messages, not even Error messages are returned.

See the service settings help for a complete break down of the levels.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.