ERROR

Type mismatch

Last Published: April 25, 2020

Error Message

ArcMap returns the error, "Type mismatch", when using the ReclassByRemap function to reassign grid cell values.

Cause

The start value is equal to the end value. ReclassByRemap does not accept a range where the start value is equal to the end value in ArcGIS 8.1. This limitation is also present in ArcInfo Workstation Grid and ArcView 3.2 Spatial Analyst 2.0.

For example, with start and end values of 0, reclassifying them to 1 using the following code will return the error message:

pRemap.MapRange 0, 0, 1

Solution or Workaround



Increase the maximum value to solve the problem.

Code:
pRemap.MapRange 0, 0.01, 1

Article ID:000003793

Software:
  • ArcMap 8 x
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic