Access to Map Document layers from GP tool

Discussion created by bbinckes on Dec 18, 2011
Latest reply on Dec 19, 2011 by bbinckes
Ok.  So I have spent some time reading how to publish 10.1 geoprocessing services and have worked on a script that accesses raster layers in the MXD doc.  Everything runs fine and I have published.  When running from the rest service I cannot access the raster layer.  This makes sense since I published the script with no knowledge of the MXD layers.

In 10.0, I used to throw the script/model in the MXD and publish as GP services.  However it appears that 10.1 is not supporting this...?  I read through migrating gp services from 10.0 and 10.1 and it really was no help in suggesting how to access the data.

I think my next steps will be to save the layer files to disk and load them into the script.  I am wondering if anyone knows what the recommended approach is to work with datasets from a gp script.