English

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 Message

When certain ERDAS Imagine IMG files in ArcGIS 9.3.1 run in the Extract by Mask tool the following error is returned:

"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)."

Cause

This error is a result of a data specific issue. The data is from the National Land Cover Database (NLCD).

Solution or Workaround

USGS, creator of the NLCD data, provides the following workaround.

1. In ArcMap

A) Add the NLCD raster and zoom to the area of interest.
B) Export the area of interest to GRID with the following settings.
• Extent: Data Frame (Current)
• Spatial Reference: Raster Dataset (Original)
C) Rename the file name and select a desired output file format, for example GRID.
D) Click Save. Ignore the message: "Failed to Save Raster Dataset."
E) Click OK.

2. In ArcCatalog

A) Navigate to ArcToolbox > Data Management Tools > Raster > Raster Properties.
B) Run the Build Raster Attribute Table tool.
C) Load the grid file as the Input Raster.
D) Check the Overwrite box.
E) Click OK.

3. In ArcToolbox

A) Navigate to Data Management Tools > Joins.
B) Run the Join Field tool with the following settings.
• Input Table: grid file
• Input Join Field: value
• Join table: source NLCD image
• Output Join Field: value
• Join Fields: Check - Red, Green, Blue, Opacity, and Land cover.

An alternative solution is to use Clip tool.

In ArcToolbox

A) Navigate to Data Management Tools > Raster > Raster Processing.
B) Run the Clip tool.
C) Load the NLCD IMG file as the Input Raster.
D) Set the Output Extent as the mask shapefile.
E) Check "Use Input Feature for Clipping Geometry"
F) Specify the Output Raster Dataset
G) Click OK