The problem still exists 😞Everything works fine on the server side: The tool is running, the output raster image is created in the jobs directory and now even the image is written in the output directory:URL: http://server/ArcGIS/rest/services/MovingWindowFunction/GPServer/Moving%20Window%20Function/jobs/j39af1a9452014046b5eff75461283d0a/results/out_result?f=pjson
Output: {
"paramName" : "out_result",
"dataType" : "GPRasterDataLayer",
"value" : {
"mapImage" : {
"href" : "http://server/arcgisoutput/_ags_map4a0b366dc2a6406c8e01f5dabbd537b6.png",
"width" : 400,
"height" : 400,
"extent" : {
"xmin" : -7.23306324850746,
"ymin" : 43.5062588282437,
"xmax" : 5.26322179315017,
"ymax" : 56.0025438699013,
"spatialReference" : {
"wkid" : 4326
}
},
"scale" : 13129323.207061
}
}
}
When I try to call the gp service from my javascript client, I use this code:this.gpTask.getResultImageLayer(jobInfo.jobId, "out_result", imageParams, dojo.hitch(this,function(gpLayer){ ...
This does not work, as I can see in the javascript console of chrome, the following URL is generated to export the image from the gp service:http://server/ArcGIS/rest/services/MovingWindowFunction/GPServer/Moving%20Window%20Function/jobs/j39af1a9452014046b5eff75461283d0a/results/out_result/export?dpi=96&transparent=true&format=png8&bbox=31124.96346345375,6358724.004726038,618161.340693325,6471850.806588045&bboxSR=102100&imageSR=102100&size=1920,370&f=image
which results in an error (web site of the rest endpoint):Specified format is not supported
Code: 400
Invalid URL
If I change the URL from "f=image" to "f=pjson", I an see a similar error message:http://server/ArcGIS/rest/services/MovingWindowFunction/GPServer/Moving%20Window%20Function/jobs/j39af1a9452014046b5eff75461283d0a/results/out_result/export?dpi=96&transparent=true&format=png8&bbox=31124.96346345375,6358724.004726038,618161.340693325,6471850.806588045&bboxSR=102100&imageSR=102100&size=1920,370&f=pjson
{
"error" :
{
"code" : 400,
"message" : "Unable to complete operation.",
"details" : [
"Invalid URL"
]
}
}
Why is it not possible to use the "export" map parameter of the gp service (with a result map service)?Am I missing something?Best regards, Stefan