ERROR

ERROR 010240: Could not save raster dataset to C:\Documents and settings\UserName\Local Settings\Temp\g_g_g19 with output format GRID.

Last Published: January 24, 2022

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)."
Note:
This article applies to retired ArcGIS versions 9.x. Later versions of ArcGIS may contain different functionality, as well as different names and locations for menus, commands and geoprocessing tools.

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.
ArcMap

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

ArcCatalog

  1. Navigate to ArcToolbox > Data Management Tools > Raster > Raster Properties.
  2. Run the Build Raster Attribute Table tool.
  3. Load the grid file as the Input Raster.
  4. Check the Overwrite box.
  5. Click OK.

ArcToolbox

  1. Navigate to Data Management Tools > Joins.
  2. 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.

Alternative solution using the Clip tool
ArcToolbox

  1. Navigate to Data Management Tools > Raster > Raster Processing.
  2. Run the Clip tool.
  3. Load the NLCD IMG file as the Input Raster.
  4. Set the Output Extent as the mask shapefile.
  5. Check Use Input Feature for Clipping Geometry.
  6. Specify the Output Raster Dataset
  7. Click OK.

Article ID:000011260

Software:
  • ArcMap 9 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic