corrupt shapefile after edit session

2236
4
07-25-2014 08:54 AM
JohnMarino
New Contributor III

I seem to be experiencing some strange behavior in ArcGIS 10.0. What's happening is that I have a number of polyline shapefiles that I am editing (deleting and modifying several segments of the lines). However, it seems that about 7 out of 10 times after I am finished editing a particular shapefile, it becomes corrupted. Whenever I try to open the shapefile again, I get the "number of shapes does not match the number of table records" error, at which point I have to use a shapefile repair utility to correct the problem. It appears that the problem each time is that there is an extraneous number of records in the dbf table, but I have no idea what's causing this to occur. Is this some sort of known issue, or is there perhaps something I am overlooking, missing, or doing incorrectly?

0 Kudos
4 Replies
DanPatterson_Retired
MVP Esteemed Contributor

By any chance are you deleting rows from the attribute table rather than deleting the features themselves?  The former aspect will surely cause a corrupt shapefile

0 Kudos
JohnMarino
New Contributor III

Nope, I believe I am deleting the features themselves. However I do generally merge several of the features - might this be related?

0 Kudos
DanPatterson_Retired
MVP Esteemed Contributor

I don't think so...but I wouldn't recommend experimenting on a good file... I did a search on google using this exact search

"number of shapes does not match the number of table records" edit session

and it yielded a lot of links.  There are suggested ways of fixing this and this at least one KB article on potential means to recover the file, but I suggest you examine your workflow and see if you find a match.  It is sometimes hit or miss...

0 Kudos
JohnMarino
New Contributor III

it seems like a lot of what I've come across are one-time instances of people having corrupt shapefiles but I haven't found much similar to what I'm experiencing, which leads me to believe it's something I'm doing. I'll keep poking around and see if I can notice any regularities with respect to when my files seem to become corrupted.

0 Kudos