ChoETL.NACHA
ChoETL.NACHA copied to clipboard
Issue with reading a file with a record that has an apostrophe
We have employees who have apostrophes in their name, i.e. Harris, D'Andre. I use the following code to read the NACHA file line by line to pick out the data in each section.
using (ChoNACHAReader fr = new ChoNACHAReader(fileName)) { foreach (var r in fr) { } }
When this code comes across a line that has the name of the Employee with an Apostrophe, it creates an exception of "Failed to parse line to 'ChoETL.NACHA.ChoNACHAEntryDetailRecord' object." and will not continue. Can this be fixed so the record doesn't cause an exception?
FYI...I can make this happen on any NACHA detail record just by adding an apostrophe to the employee's name.
Thank you
Hi, I'm not able to reproduce error. Can you please send me code snippet and along with more information (field name)?
Version of the library used?