A friend of mine (yes, I'm aware of how that sounds, but it's true) had a felony expunged from his record 10 years ago. Recently when getting screened for a job it showed up and now his job is at risk. How is this possible?

And are there any legal actions that can be taken to prevent it from happening again?