ERROR

ERROR 010067: Error in executing grid expression. Failed to execute (Contour)

Last Published: July 5, 2021

Error Message

The Contour tool fails to execute in ArcMap and returns the following error:

Error:   
ERROR 010067: Error in executing grid expression. Failed to execute (Contour). 

Cause

The error occurs due to the following reasons:

  • When working with a file-based raster dataset, the value for the input is set to a negative integer (such as -32767) instead of a NoData value, which is used to represent the absence of data.
  • The input raster does not meet Esri Grid format requirements. 
  • The Contour tool times out when processing large feature classes in the foreground.

Solution or Workaround

Use one of the following solutions to resolve the error:

Set the input raster value to NoData using the Set Null tool

  1. In ArcMap, navigate to Geoprocessing > ArcToolbox > Spatial Analyst Tools > Conditional > Set Null.
  2. In the Set Null window, select the raster dataset as the Input conditional raster.
  3. In the Expression box, type VALUE =-32767, where -32767 is the value that must be replaced with NoData.
  4. Set the Input false raster or constant value to the same raster dataset selected in Step 2.
  5. Set the desired location for the output raster, and click OK.
  6. Run the Contour tool using the output raster from Step 5 as the input.

Export the input raster to a TIFF format

Before running the Contour tool, export the input raster from a grid format to a TIFF format. Refer to ArcMap: Export or convert raster datasets for more information on converting raster formats.

Enable background geoprocessing

Before running the Contour tool, enable background geoprocessing to allow ArcMap to process in the background without crashing. To enable background geoprocessing, navigate to Geoprocessing > Geoprocessing Options, and select the Enable checkbox in the Background Processing section. Refer to ArcMap: Foreground and background processing for more information on background geoprocessing.

Note:
Once the Contour tool executes completely, disable background geoprocessing because some geoprocessing tools perform better in the foreground.

Article ID: 000014968

Software:
  • ArcMap

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options