This is one of those situations where you should look at your overall process. One of the issues I see in RPA is people simply automate bad processes instead of improving the process.
Where is that file coming from? The format is awful. You should work on that part of your overall process and get a better file.