Depending on the kind of error, the entire flat file might be regarded as erroneous.
For example, if a delimiter is missing, it might mess up all the rows that come after that.
Which error are you testing?
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP