Select to view content in your preferred language

Extract Data Widget Error: GPTask 'submitJob' does not exist or is inaccessible.

2359
4
11-12-2011 03:38 AM
DavidWhite
Emerging Contributor
System:

Windows Server 2003
ArcGIS Server 10
Flex Viewer 2.4

I am trying to use Geoprocessing Widget specifically the GeoprocessingWidget_ExtractData. It loads correctly, I am able to draw an area of interest, select the layer to clip and ship and choose data export type. However, I am getting the following error after choosing to extract the data.

{"error":{"code":400,"message":"Unable to complete  operation.","details":["GPTask 'submitJob' does not exist or is inaccessible."]}}

The URL that is failing is:

"http://SERVER.NAME/ArcGIS/rest/services/ClipAndShip/GPServer/submitJob?env%3AoutSR=102100&Feature%5F..."

I have successfully used this service via ArcMap as described in the tutorial for setting up the Data Extract Service.

And the service appears to be "alive" as the following URL "http://SEVER.NAME/ArcGIS/rest/services/ClipAndShip/GPServer?f=json" results in the following response from the service

{"serviceDescription":"","tasks":["Extract Data Task"],"executionType":"esriExecutionTypeAsynchronous","resultMapServerName":""}
Tags (2)
0 Kudos
4 Replies
ArokiyaJoseph
Deactivated User
Looks like a simple slip.

The Geoprocessor url should point to gp task url but from the url you have specified it looks like it is pointing to GPServer. Can you try modifying it?

Current Geoprocessor URL in your app:
http://SERVER.NAME/ArcGIS/rest/services/ClipAndShip/GPServer

Please modify it to:

http://SERVER.NAME/ArcGIS/rest/services/ClipAndShip/GPServer/ExtractDataTask.
0 Kudos
DavidWhite
Emerging Contributor
OK. That seemed to fix the original problem. Specifically, I added the URL below to the <taskurl> element in GeoprocessingWidget_ExtractData.xml

http://SERVER.NAME/ArcGIS/rest/services/ClipAndShip/GPServer/Extract%20Data%20Task

Now. I am getting the following error

error Object { code=500, message="Error Submitting Job", details=[0]}

http://SERVER.NAME/ArcGIS/rest/services/ClipAndShip/GPServer/Extract%20Data%20Task/submitJob?Feature...
0 Kudos
DavidShaeffer
Occasional Contributor
OK. That seemed to fix the original problem. Specifically, I added the URL below to the <taskurl> element in GeoprocessingWidget_ExtractData.xml

http://SERVER.NAME/ArcGIS/rest/services/ClipAndShip/GPServer/Extract%20Data%20Task

Now. I am getting the following error

error Object { code=500, message="Error Submitting Job", details=[0]}

http://SERVER.NAME/ArcGIS/rest/services/ClipAndShip/GPServer/Extract%20Data%20Task/submitJob?Feature...


I am having the same issue on my server.  I am using the same ClipAndShip example.  Have you figured out how to fix this problem?

This is my syntax:

"http://server.name/ArcGIS/rest/services/ODRG/ClipandShip/GPServer/Extract%20Data%20Task/submitJob?f=..."

I get this error:  dojo.io.script.jsonp_dojoIoScript5._jsonpCallback({"error":{"code":500,"message":"Error Submitting Job","details":[]}});


Dave S
0 Kudos
KonstantinLapine
Emerging Contributor
I am having the same issue on my server.  I am using the same ClipAndShip example.  Have you figured out how to fix this problem?

This is my syntax:

"http://server.name/ArcGIS/rest/services/ODRG/ClipandShip/GPServer/Extract%20Data%20Task/submitJob?f=json&env%3AoutSR=102100&Layers_to_Clip=%5B%22Art_Cat%22%2C%22Art_Cat%22%2C%22Art_Cat%22%5D&Area_of_Interest=%7B%22fields%22%3A%5B%5D%2C%22geometryType%22%3A%22esriGeometryPolygon%22%2C%22features%22%3A%5B%7B%22geometry%22%3A%7B%22rings%22%3A%5B%5B%5B-13594793.76432079%2C6051782.877430132%5D%2C%5B-13594793.764320793%2C6051769.739815896%5D%2C%5B-13594791.375663659%2C6051849.759829876%5D%2C%5B-13594740.019535283%2C6051836.622215641%5D%2C%5B-13594793.76432079%2C6051782.877430132%5D%5D%5D%2C%22spatialReference%22%3A%7B%22wkid%22%3A102100%7D%7D%7D%5D%2C%22sr%22%3A%7B%22wkid%22%3A102100%7D%7D&Feature_Format=Shapefile%20-%20SHP%20-%20.shp&callback=dojo.io.script.jsonp_dojoIoScript5._jsonpCallback"

I get this error:  dojo.io.script.jsonp_dojoIoScript5._jsonpCallback({"error":{"code":500,"message":"Error Submitting Job","details":[]}});


Dave S


Do you have Raster_Format parameter in your Extract Data Task service? If you do, you need to provide it in your JSON call. In the ClipAndShip example they don't have that parameter. Modify it to something like:

      var params = {"Layers_to_Clip":clipLayers,
        "Area_of_Interest": featureSet,
        "Feature_Format": dijit.byId('formatBox').value,
        "Raster_Format": ""
      }
0 Kudos