I have written a script that uses pool.map to process multiple netCDF files and store information in a table. Each process runs a function to process one year. Each year has it's own individual file geodatabase, table within that geodatabase, and mxd. I also set the default workspace and scratch workspace to that geodatabase. For example when the function loads the year 1979 it accesses the 1979 geodatabase, 1979 table within that geodatabase, and 1979 mxd. 1980 would access the 1980 geodatabase, 1980 table within that geodatabase, and 1980 mxd.
If I run 1 process everything works fine. If I try to run 2 or more I get Fatal Error (INFADI) Missing Directory. It always happens at random times on a random process. A try catch phrase isn't catching the error. The process is completely shutting down. All the other processes continue and the process that crashes starts another year.
It happens here:
Does anyone have any thoughts?
Thanks
If I run 1 process everything works fine. If I try to run 2 or more I get Fatal Error (INFADI) Missing Directory. It always happens at random times on a random process. A try catch phrase isn't catching the error. The process is completely shutting down. All the other processes continue and the process that crashes starts another year.
It happens here:
Code:
try:
deleteme = Raster(arcpy.gp.ExtractByMask_sa(WSILayerRas, AOIshape))
except:
continue
Thanks