ggunther

Problem with Geoprocessing Service

Discussion created by ggunther on Apr 7, 2011
Latest reply on Jun 24, 2011 by ggunther
We have a geoprocessing service running in ArcGIS Server 10 sp1 java edition.  It is basically the same as the population summary/demographics GP Example.



The geoprocessing service runs fine in ArcMap and in ArcGIS Explorer as a service from ArcGIS Server.




When trying to implement the service within a web app using the javascript api based on this sample http://help.arcgis.com/en/webapi/javascript/arcgis/demos/gp/gp_zonalstats.html (and even with the flex sample) I keep getting "dojo.io.script.jsonp_dojoIoScript2._jsonpCallback({"error":{"code":500,"message":"Error executing task 'SumZone'. Please check your parameters.","details":[]}});"





We have tried everything
1.  Running it locally
2.  local jobs folder, etc
3.  Both on 9.3.1 and 10

Here is the REST request with the geometry payload to execute the service
http://igskaecgas010:8399/arcgis/rest/services/tmtools/ZonalStats/GPServer/SumZone/execute?f=json&env%3AoutSR=102100&env%3AprocessSR=102100&inputPoly={%22geometryType%22%3A%22esriGeometryPolygon%22%2C%22features%22%3A[{%22geometry%22%3A{%22rings%22%3A[[[-12089524.992070802%2C4855463.220549357]%2C[-12083410.029807992%2C4851488.49507853]%2C[-12084021.526034273%2C4851488.49507853]%2C[-12086773.259052537%2C4851488.49507853]%2C[-12089524.992070802%2C4849654.006399686]%2C[-12089524.992070802%2C4853017.2356442325]%2C[-12089524.992070802%2C4855463.220549357]]]%2C%22spatialReference%22%3A{%22wkid%22%3A102100}}}]%2C%22sr%22%3A{%22wkid%22%3A102100}}&callback=dojo.io.script.jsonp_dojoIoScript2._jsonpCallback

Here is the web app (but the map server is internal so you wont be able to see that).

A six pack to the one who can help me with this!

Outcomes