Problem with Geoprocessing Service

5214
10
04-07-2011 12:01 PM
Gregory_L___Greg_Gunther
New Contributor II
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&en...{%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!
0 Kudos
10 Replies
Gregory_L___Greg_Gunther
New Contributor II
Finally figured it out.  I wrote a blog about 2 gotchas we ran into.  http://blog.mapvibes.net/2011/06/real-life-geoprocessing-service-in.html.  Worked with a really good analyst at ESRI.
0 Kudos