Hi Chris,
Thanks for the reply and programming advice. I'm new to python so I appreciate all tips!
As for the problem, I'm processing about 400 rasters. The problem doesn't seem to occur with any one particular raster. I updated the code with the recommendations you provided including checking out the extension at the start and set the outputs to output directories rather than the workspace. I didn't rename the rasters as I don't think this is the problem as occasionally the code works successfully. I've been doing some reading on the message board and think there could be a memory leak issue and the code is terminating when the memory is full. Unfortunately, I know very little about what this actually means or how to go about fixing it. Its happening to me on multiple python codes now (see attached).When I ran the the Cloud fill one on ArcGIS 9.2 it ran without problems. However, when I try to run it on 9.3.1 it is getting the same run-time error. I think there might be a connection between the scripts as well as the runtime error on the reclass code seems to mostly occur after I've ran the larger cloud fill code. I also noticed intermediate layers in the scratch workspace are not being deleted and .aux files are continually accumulating in the scratch workspace as the scripts run. Correct me if I'm wrong but shouldn't these files be deleted upon completion of geoprocessing?
Any more insight, comments or insight would be greatly appreciated.
Thanks for all your help.