1

I have a geoprocessing arcpy script that seems to work fine through arcgis client. I receive no publishing errors. Whenever I submit a job to the geoprocessing service, it fails almost instantly. The job details all look similar to the following:

Job Details: j0191703c856e42d2a5e3c830fc9a6175 (MarketAnalysis)
Job ID: j0191703c856e42d2a5e3c830fc9a6175

Job Status: esriJobFailed

Job Messages:

    esriJobMessageTypeInformative: Submitted.
    esriJobMessageTypeInformative: Executing...
    esriJobMessageTypeError: Failed.

The problem is that nothing shows up in any logs even with it set to debug. I have some logging at the very start of my script and it appears to fail before that. The best I can figure is that it fails before executing the script, but I can't verify that. I don't knwo where else to look. All that I can see is the status of 'esriJobMessageTypeError', but no cause as to why.

Has anyone seen this? Does anyone know anyway to determine the problem? Other geoprocessing services work, just not this one.

8
  • 2
    You need to through some comments/logging into your script at a finer level, so you can see responses as it start to spin up. I setup messages when my Temp/Scratch space is set then as I select my layers etc. This lets me see where/when events are triggering or failing. You can throw a Try/Catch around events to focus the process too.
    – D.E.Wright
    Commented Oct 2, 2013 at 18:01
  • 1
    That, but more importantly, he needs to turn messages to INFO on the Parameters page of the GP Service. That will start spitting out more relevant information which you've trapped/expressed in the script. Right now you have it set to None.
    – KHibma
    Commented Oct 2, 2013 at 19:45
  • @D.E.Wright, I placed error logs at the very start of my script and they aren't happening. I don't think my script is being run.
    – pgreen2
    Commented Oct 2, 2013 at 20:30
  • @KHibma, thank you for the suggestion about INFO on the parameters page. I didn't know it existed.
    – pgreen2
    Commented Oct 2, 2013 at 20:31
  • Ah! A perfect failure! Commented Oct 2, 2013 at 21:17

1 Answer 1

1

I never figured out the real problem of the missing error messages. While talking to a coworker about the problem he mentioned that in 10.1sp1 (and I guess 10.2 as well) there is a bug related to generating a SD from geoprocessing results. You must chose a connection. I wasn't doing this. After including a connection, I am now seeing errors in the logs related to problems with the script. I assume the failures I was seeing were related to the missing connection.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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