how to determine why task failed

2358
2
10-10-2012 01:32 PM
Labels (1)
VincentDolan
New Contributor III
Hello  I'm trying a modification of the Point-to-point routing sample at http://www.arcgis.com/home/item.html?id=21a58d089764402e90ce127894dec94e

My job is failing with jobinfo messages: "Submitted.", "Executing...", "Failed."
and taskfailedeventargs: "Unable to complete operation." /-2146233088/0x80131500 (no inner exception)

What are some techniques I can use to get some more information about the reason why the job failed?

Would the .dat files in the subfolders of %temp%\arcgisruntime_xxxx be helpful to me?  How can they be read?  Any other ideas?

Thanks.
0 Kudos
2 Replies
BKuiper
Occasional Contributor III
You can use Fiddler (http://www.fiddler2.com) to debug the traffic between your app and runtime. That will sometimes help to debug the issue.
0 Kudos
VincentDolan
New Contributor III
Here's an answer- I hope someone finds this useful.

After a few changes including building MapPoints more similarly to the sample and I wound up seeing:
  Submitted.
  Executing...
  ERROR 000816: The tool is not valid.
  Failed.
in the JobInfo.Messages that were seen at the geoprocessor JobInfo.JobStatus upate to esriJobStatus.esriJobFailed

Next, looking at the ((ESRI.ArcGIS.Client.Tasks.ServiceException)(taskFailedEventArgs.Error)).Details, I saw:
  "Cannot load the data file Dataset_conus for the geographic transformation NAD_1927_To_NAD_1983_NADCON."

After seeing that, I modified my Runtime deployment to include:
    Client Core
    Local Server
    Geocoding
    Geoprocessing
    Spatial Analyst
    Network Analyst
    Map Server Results
    Additional Projection Engine Transformations

So, the answer is: one of the above deployment options were needed.

[And, thanks for the suggestion, Kuiper.]
0 Kudos