Select to view content in your preferred language

esriJobFailed

3073
3
12-08-2013 12:14 PM
anjelinaponker
Emerging Contributor
Hi
I have a geoprocessing web service, when my job has problem server return this message:

esriJobFailed

I need to customize above message to another message for example I need it show this message: Input coordinate is not valid.

I dont know how can I change "esriJobFailed" message?

please help me.
Regards
Tags (2)
0 Kudos
3 Replies
WilliamCraft
MVP Alum
Is this a custom geoprocessing service that you created?  To improve/modify error handling and their associated error messages, you may be able to modify the Python script that gets executed by the GP service. 

Sometimes Esri error messages appear when a tool simply fails; the resulting error message is something that is embedded into the Esri code for that tool and it can't be changed.  I think most of the time, we're all at the mercy of the Esri error reportnig that is part of the application code.  We've all seen the dreaded "General System Failure" or "99999" error message from Esri tools that haunt us from day to day. 

Other times, if there is a failure in your own script somewhere, you may be able to provide a clearer error message by inserting the arcpy.AddWarning or arcpy.AddError module throughout the code.  Depending on the version of ArcGIS you are using, these links may be helpful for you:

http://help.arcgis.com/en%20/arcgisdesktop/10.0/help/index.html#/AddError/000v00000003000000/
http://resources.arcgis.com/en/help/main/10.1/index.html#/AddError/018v0000005w000000/
http://resources.arcgis.com/en/help/main/10.2/index.html#/AddError/018v0000005w000000/

Think of these as custom error reporting where you, as the script programmer, anticipate which issues may occur based on script input and then modify your code to better communicate those issues to the end user. 

I'm not sure if this answers your question, but I understand that error reporting can be frustrating.
0 Kudos
anjelinaponker
Emerging Contributor
Is this a custom geoprocessing service that you created?  To improve/modify error handling and their associated error messages, you may be able to modify the Python script that gets executed by the GP service. 

Sometimes Esri error messages appear when a tool simply fails; the resulting error message is something that is embedded into the Esri code for that tool and it can't be changed.  I think most of the time, we're all at the mercy of the Esri error reportnig that is part of the application code.  We've all seen the dreaded "General System Failure" or "99999" error message from Esri tools that haunt us from day to day. 

Other times, if there is a failure in your own script somewhere, you may be able to provide a clearer error message by inserting the arcpy.AddWarning or arcpy.AddError module throughout the code.  Depending on the version of ArcGIS you are using, these links may be helpful for you:

http://help.arcgis.com/en%20/arcgisdesktop/10.0/help/index.html#/AddError/000v00000003000000/
http://resources.arcgis.com/en/help/main/10.1/index.html#/AddError/018v0000005w000000/
http://resources.arcgis.com/en/help/main/10.2/index.html#/AddError/018v0000005w000000/

Think of these as custom error reporting where you, as the script programmer, anticipate which issues may occur based on script input and then modify your code to better communicate those issues to the end user. 

I'm not sure if this answers your question, but I understand that error reporting can be frustrating.



Is ther any way to disable error mesage?
0 Kudos
JonathanQuinn
Esri Notable Contributor
Are you trying to return that message to the client application, or simply retrieve the errors that occur?  Have you set the message level of the geoprocessing service to Info?  That will return all messages created during the process just like you'd see when running the process initially in ArcMap.  You can check these messages by running Fiddler alongside the application or running the process at Rest.  If you're trying to send this message to the client, you'll have to parse the error message returned and handle it within the application.
0 Kudos