CityOfSurrey

Results from geoprocessing job not being returned to client...

Discussion created by CityOfSurrey on Feb 3, 2012
Latest reply on Feb 7, 2012 by DSwingley-esristaff
I have published a geoprocessing job to ArcGIS Server.  I cannot seem to retrieve the resultant geometry from the job.  The job executes successfully as seen in the ArcGIS Server log and valid data in the output folder.

On the JavaScript API side - results[0] is undefined is returned from the job. 


gp.submitJob(params, getPlume);

function getPlume(results, messages) {
     console.log(results);
     var features = results[0].value.features;
}



Any ideas why I am not getting the geometry returned?  There is a valid shape file created in the output folder.

Thanks in advance,

M

ps - uses the same model as this:

http://sampleserver2.arcgisonline.com/ArcGIS/rest/services/PublicSafety/EMModels/GPServer/ERGByChemical

Outcomes