error: Number of shapes does not match the number of table records

1108
2
Jump to solution
12-03-2013 12:45 PM
YichiLiu1
New Contributor III
Hi everyone,

I have a point shapefile with over 2 millions of records. I used field calculator to edit one field and deleted another field. After that, if I try to open this shape file again, it showed me an error: Number of shapes does not match the number of table records. It works fun for small shapefiles. I am trying to create a python tool, but this problem has been bugging me for days. Anyone know why and how to solve this?

Thank you very much!!!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
NeilAyres
MVP Alum
Firstly I would dump shapefiles and get the data into a geodb. A shapefile with 2mill records might be getting close to its max size (the *.dbf part), 1Gb I think, may be wrong.
That error message is usually when the geometry part is getting out of kilter with the attribute part, one doesn't match the other and is normally fatal for shapefiles.
Cheers,
Neil

View solution in original post

0 Kudos
2 Replies
NeilAyres
MVP Alum
Firstly I would dump shapefiles and get the data into a geodb. A shapefile with 2mill records might be getting close to its max size (the *.dbf part), 1Gb I think, may be wrong.
That error message is usually when the geometry part is getting out of kilter with the attribute part, one doesn't match the other and is normally fatal for shapefiles.
Cheers,
Neil
0 Kudos
YichiLiu1
New Contributor III
Firstly I would dump shapefiles and get the data into a geodb. A shapefile with 2mill records might be getting close to its max size (the *.dbf part), 1Gb I think, may be wrong.
That error message is usually when the geometry part is getting out of kilter with the attribute part, one doesn't match the other and is normally fatal for shapefiles.
Cheers,
Neil


Thank you very much! I eventually did everything in geodb and it worked out perfectly!
0 Kudos