I have some vector map services and a custom geoprocessing tool which makes use of the ConvertWebMapToMapDocument tool and the ExportToPDF tool published on ArcGIS for Server. When including the majority of the layers, I am able to run a geoprocessing job successfully but there are instances where the job is failing. Sometimes the service instance is crashing and other times it just returns a failure message.
The geoprocessing tool is accepting a WebMap as parameter which is then converted to an MXD using the ConvertWebMapToMapDocument tool. I think that the problem lies within this tool because I'm not able to open the resulting MXD. I've tried using MXD Doctor but no errors were found.
The error I'm capturing in the ArcGIS for Server Logs is:
It's good to note that this process was working perfectly until some time ago.
I appreciate if someone can help me or give me some tips what I should look for because it looks like I've hit a wall and this is getting frustrating.
أكثر...
The geoprocessing tool is accepting a WebMap as parameter which is then converted to an MXD using the ConvertWebMapToMapDocument tool. I think that the problem lies within this tool because I'm not able to open the resulting MXD. I've tried using MXD Doctor but no errors were found.
The error I'm capturing in the ArcGIS for Server Logs is:
Error executing tool.: Traceback (most recent call last): File "C:\arcgisserver\directories\arcgissystem\arcgisinput\Toolbox\ExportCV.GPServer\extracted\v101\printingtoolbox\ExportCurrentView.py", line 92, in arcpy.mapping.ExportToPDF(mxd, Output_File, 'PAGE_LAYOUT', 100, 100, Resolution, ImageQuality, 'CMYK', True, 'ADAPTIVE', 'RASTERIZE_BITMAP', False, True, 'NONE', False, 70) File "c:\program files\arcgis\server\arcpy\arcpy\utils.py", line 181, in fn_ return fn(*args, **kw) File "c:\program files\arcgis\server\arcpy\arcpy\mapping.py", line 1139, in ExportToPDF layout.exportToPDF(*args) AttributeError: PageLayoutObject: Error in executing ExportToPDF PageLayoutObject: Error in executing ExportToPDF Failed to execute (ExportCurrentView). Failed to execute (ExportCV).
I also tried running the tool directly from ArcMap but I received the same error. On the other hand, if I add the data directly from the geodatabase to a new MXD and try exporting the layout to PDF (File > Export Map), it will succeed.
It's good to note that this process was working perfectly until some time ago.
I appreciate if someone can help me or give me some tips what I should look for because it looks like I've hit a wall and this is getting frustrating.
أكثر...