I take it from your post that you've updated to a recent release of MAME and in the process lost 1000 some odd titles.
That being the case, did you also update your set also? A MAME release with an unmatched set release will create issues such as this since the changes, no matter how subtle, have a direct effect on the game titles themselves.
That's the only other thing that comes to mind currently.