English

Error: Error opening feature class. Number of shapes does not match the number of table records

Error Message

Note:
The content in this article pertains to ArcGIS versions 9.x and 10.0. Later versions of ArcGIS may contain different functionality, as well as different names and locations for menus, commands and geoprocessing tools.

Accessing or viewing a shapefile in ArcMap or ArcCatalog returns the error:

Error:   
Error opening feature class
Number of shapes does not match the number of table records

Cause

There is a mismatch between the number of features and the number of records in the DBF file. This can be caused by editing the shapefile DBF table in Microsoft Excel, or by an ArcMap crash while the shapefile is being edited.

Solution or Workaround

The options listed below may fix the problem.

Warning:
Please be aware that third-party scripts and extensions are unsupported by Esri. It is highly recommended that a backup copy of the shapefile be created before running the damaged shapefile through either of these utilities.
  • Use the 'ShapeFile Repairer' utility available on ArcScripts to fix the mismatch. A link is provided in the Related Information section below.
Note:
For the ShapeFile Repairer Utility to work correctly, ensure the language setting of the computer matches the language used to create the shapefile.
  • Use the 'Shapefile Repair Tool' by Jerry Workman. A link is provided in the Related Information section below.
  • Use ArcInfo Workstation to convert the shapefile to a coverage and back to a new shapefile using the following command sequence.
Warning:
This option is only available with the ArcGIS ArcInfo license with ArcInfo Workstation installed!
Arc: precision double double

Arc: usage shapearc
Usage: SHAPEARC   {out_subclass}
     {DEFAULT | DEFINE}

Arc: shapearc sample.shp tempcov 

Arc: build tempcov 

Arc: usage arcshape
Usage: ARCSHAPE   
     {DEFAULT | DEFINE}

Arc: arcshape tempcov  newshape.shp

Related Information