Raster layer Not displaying in exported file.

Discussion created by AntoJK on Oct 3, 2011
I am working on a GP Task that exports Map documents containing layers specified by the user to PDF.

The code and exporting is all working correctly when the script is ran from ArcMap 10 or from the python IDE. But once the GP task is published and ran from the REST endpoint, raster layers do not display in the exported file. I have tried exporting to PDF and JPG, using the default settings and with some different values, both with the same result.

Everything exports and displays correctly except for the raster layer and this is only when running the published version of the GP Task  from the REST endpoint, it works correctly in ArcMap and the IDE.

Has anybody seen this problem before and know how to fix it?