CsvReader
CsvReader copied to clipboard
Privacy issues in exception handling
_csvReader.ParseError. When checking my error log file the following is found "OnCsvParseError The CSV appears to be corrupt near record '3174' field '1120 at position '1120'. Current raw data : " this is then followed by many lines of the contents of the csv file which contains data about users. It was brought to my attention that this might cause legal issues and I was asked to fix it. Is there any way to configure csv reader so as not to dump the data as part of the exception?
Hi, You can simply wrap reader in try catch, and when this error appears show your custom message.