python - feature to raster conversion  please help!

Discussion created by katewalker on Sep 9, 2011
Latest reply on Sep 11, 2011 by corea
I have got 530 features from 4 geodabases to convert to rasters, so using python should be the quickest way.  However, after successfully converting 20 of them, Arc kept giving me an error saying that the grid name was too long, it wasn't but to work around this I created a different destination folder so that the address of the destination folder fitted on one line (I think Arc was having a hissy fit because the address ran over two lines!).  In any case, I am now getting a big error box called 'background processing' appearing when I try to run my script, which informs me that 'background processing has encountered a serious error and is unable to continue' - any ideas or suggestions gratefully received as I cant face using the toolbox to do this for me, 530 times.  Oh, and if I convert to raster using the toolbox it works fine!
The python script I have been using is:
import arcpy
from arcpy import env
env.workspace = "c:\Users\User\Documents\PESERA\Conwy\Conwy.mdb"
arcpy.FeatureToRaster_conversion("Conwy_PESERA", "newtemp1", "c:\Users\User\Documents\PESERA\Conw\newtemp1", 100)