Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using a custom tool to export a webmap to PDF. The tool works successfully through ArcGIS 10.1. The problem crops up when consuming the tool through my Silverlight application using PrintTask. The tool works in an intermittent fashion i.e. sometimes it works, and sometimes it gives an error.

I turned to ArcGIS Manager log and extracted the following error:

Traceback (most recent call last): File     "C:\arcgisserver\directories\arcgissystem\arcgisinput\Toolbox\ExportPDSitePlanPart.GPServer\extracted\v101\printingtoolbox\", line 48, in result = arcpy.mapping.ConvertWebMapToMapDocument(Web_Map_as_JSON, templateMxd) File "c:\program files\arcgis\server\arcpy\arcpy\", line 234, in ConvertWebMapToMapDocument return webmap_tuple(*convertArcObjectToPythonObject(arcgisscripting._convertWebMapToMapDocument(webmap_json, template_mxd, notes_gdb, extra_conversion_options))) RuntimeError: Layer "PD Working Layer": Failed to create layer from service at Layer "PD Working Layer": Failed to create layer from service at Failed to execute (ExportSP). Failed to execute (ExportSP).

I can confirm that I can access the service from the same server where the tool is running. (i.e.

Can someone point me in the right direction?


share|improve this question

Is the Print Service synchronous? If so try making it an async service under ArcGIS Server as it may be timing out. You can change the sync / async settings by accessing the service under the REST admin services directory.

If it is already asynchronous can you post the error that is returned in the completed event handler and also the trace from the StatusUpdate event.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.