What is the error message for Esri error 010240?
Search on Esri Community Submit to ArcGIS Ideas Error: ERROR 010240: Could not save raster dataset to C:\\Documents and settings\\UserName\\Local Settings\\Temp\\g_g_g19 with output format GRID. “ERROR 010240: Could not save raster dataset to C:\\Documents and settings\\UserName\\Local Settings\\Temp\\g_g_g19 with output format GRID.
Where does the error occur in ArcPy Python script?
Near the end of the script of get an error at the same location each time. The error occurs after one successful run of the code (i.e. the error occurs on the second occurrence of the same task) I have env.overwriteOutput set to True so that is not the problem.
Is there a workaround for image processing in ArcPy?
WORKAROUND = I found a work around by saving the output as a TIF image rather than a Raster file. 1) have you set arcpy.env.workspace, arcpy.env.scratchWorkspace? Presuming this is outside a gdb, so you don’t need arcpy.env.scratchFolder set (only applies in ArcGIS 10.1+, I think).
How much RAM does an ArcPy script need?
The script produces a grid for the first run, but the second one creates a grid that is unreadable in ArcGIS. I m working from a windows virtual machine (parallels) on a mac with 8 GB of RAM.
What is the error message for the raster dataset?
Error: ERROR 010240: Could not save raster dataset to C:\\Documents and settings\\UserName\\Local Settings\\Temp\\g_g_g19 with output format GRID. “ERROR 010240: Could not save raster dataset to C:\\Documents and settings\\UserName\\Local Settings\\Temp\\g_g_g19 with output format GRID. Failed to execute (ExtractByMask).”
Why does Esri not save raster dataset?
So, it sounds like it’s not a length issue since it’s in a fgdb (and your first example works). It doesn’t seem like a perms issue since you’re specifying your scratch enviro (and your first example works), and, as you’re appending a datestamp, it doesn’t seem likely that you’re trying to overwrite a file with same name.
Why do I get error 010240 on GDB?
The 010240 error points to a pathname issue. If you set the scratchWorkspace to a safer path, for example: C:Datascratch you may have better luck. Earlier you saw the temp rasters written to your user Default.gdb. I have seen this behavior when the currently set scratchWorkspace does not exist.
What causes runtimeerror : error 010240 saving after cellstatistics?
What causes RuntimeError: ERROR 010240 saving after CellStatistics? I am having trouble saving outputs from CellStatistics but only when I run it on a list of rasters. This was working on python 26 but not 27. I know this example is nonsense, but: