When reading from a tsv file, you need to log all records with empty fields, but not return them in the resulting list.
For this, in the configuration, the MissingFieldFound field is MissingFieldFound :
var config = new Configuration { MissingFieldFound = (rows, fieldIndex, readingContext) => Log.Warn($"Missing Field Found at line {readingContext.Row}\r\n" + $"Field at index {fieldIndex} does not exist\r\n" + $"Raw record: {readingContext.RawRecord}"), } As stated in the documentation, the method calls when processing such strings.
It is a field that has been found. The default function will throw a MissingFieldException.
But at the same time, the lines themselves, without any changes, fall into the resulting list and cut the application during the validation phase of deserialized objects.
How can CsvHelper be configured to skip these lines?