cannot add the shapefile into arcgis

2442
4
Jump to solution
10-20-2014 09:57 PM
Highlighted
New Contributor

My friend renamed the shapefile's name in windows 7 system, but not in the catelog. When he noticed that it is a fault, he changed the all related files' names into the original ones in catelog environment. And then, it happened error. It cannot add into arcgis and it noticed that "Number of shapes does not match number of table records". How can we deal with this issue? Thank you very much.

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
MVP Frequent Contributor

It might be possible to recover the shapefile by using the "Previous Versions" function in Windows 7.  However, read the cautions below before trying this:

1.  Use Windows Explorer to browse to the file.

2.  Right-click on the File, then pick"Properties".

3.  Choose the "Previous Versions" Tab.

4.  Look to see if a previous version is listed.  If there is a version, you can potentially restore it with the Restore function in this window.

-----CAUTIONS:

1.  Because this process will overwrite data, it is best to back up the information to a different location first so you can fall back on the backup copy if the restore goes awry.  Once you restore, it can't be undone.

2.  You will need to restore all the components of the shapefile.  At minimum, this will include files with the extension .shp, .shx, and .dbf.  There may be other files with different extensions also.  See this link for ideas on what other extensions may be present:

http://en.wikipedia.org/wiki/Shapefile

3.  If the shapefile is in a folder, one strategy to have all the shapefile components restored at once is the restore the folder instead of the individual files.  However, consideration will have to be made for all other data and folders that may be in this folder (and files and folders off those), as they too will be affected by the restore.

Hope this helps,

Christopher Donohue, GISP

View solution in original post

Reply
0 Kudos
4 Replies
Highlighted
MVP Esteemed Contributor

did you search that phrase in GeoNet?  Is the spelling and text case for all the renamed files the same?  is he sure that a row wasn't deleted in the shapefile's table? are all the parts that make up the shapefile there (ie *.shp, *.shx, *.dbf etc )

Reply
0 Kudos
Highlighted
New Contributor

I am very sorry, I am not sure that. But he said he didnot change anything just renamed the file.

Reply
0 Kudos
Highlighted
MVP Frequent Contributor

It might be possible to recover the shapefile by using the "Previous Versions" function in Windows 7.  However, read the cautions below before trying this:

1.  Use Windows Explorer to browse to the file.

2.  Right-click on the File, then pick"Properties".

3.  Choose the "Previous Versions" Tab.

4.  Look to see if a previous version is listed.  If there is a version, you can potentially restore it with the Restore function in this window.

-----CAUTIONS:

1.  Because this process will overwrite data, it is best to back up the information to a different location first so you can fall back on the backup copy if the restore goes awry.  Once you restore, it can't be undone.

2.  You will need to restore all the components of the shapefile.  At minimum, this will include files with the extension .shp, .shx, and .dbf.  There may be other files with different extensions also.  See this link for ideas on what other extensions may be present:

http://en.wikipedia.org/wiki/Shapefile

3.  If the shapefile is in a folder, one strategy to have all the shapefile components restored at once is the restore the folder instead of the individual files.  However, consideration will have to be made for all other data and folders that may be in this folder (and files and folders off those), as they too will be affected by the restore.

Hope this helps,

Christopher Donohue, GISP

View solution in original post

Reply
0 Kudos
Highlighted
New Contributor

Hi, Chris:

Thanks so much for your help. Done!

Reply
0 Kudos