Fix logic when handling raw data file.

These three fields are all required.