AnsweredAssumed Answered

Need help with Printing - Export Web Map Task - Failed to create layer from service

Question asked by msss.gouv on Oct 21, 2014
Latest reply on Feb 6, 2015 by msss.gouv


I am trying to print a map that I made with arcgis server 10.2 and arcgis javascript api.

 

The problem is that I keep getting an error (code: 400, message: "Unable to complete operation.", details: Array[1], log: undefined, httpCode: 400).

 

which is more specifically -->

 

Unable to complete operation.

Error executing tool.: Layer "graphicsLayer8": Failed to create layer from service at http://MYSERVER/arcgis/rest/services/Tests/MyFirstMapService/MapServer/2. Layer "graphicsLayer9": Failed to create layer from service at http://MYSERVER/arcgis/rest/services/Tests/MyFirstMapService/MapServer/2. Layer "graphicsLayer10": Failed to create layer from service at http://MYSERVER/arcgis/rest/services/Tests/MyFirstMapService/MapServer/0. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task).

 

I get the error if I try to do it via my web server or directly off the arcgis server by doing :

 

http://MYSERVER/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute?Web_Map_as_JSON=…

 

Here's the code for the printing part :

 

 

 

 

Ce message a été modifié par : Dominic Gervais

Outcomes