How do you make a non valid exported file a valid one?

An invalid file is one where the data is bad. You need to re-export the file.