ChoETL.NACHA icon indicating copy to clipboard operation
ChoETL.NACHA copied to clipboard

Issue with reading a file with a record that has an apostrophe

Open Andrew-Elwood opened this issue 4 years ago • 1 comments

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

Andrew-Elwood avatar Dec 02 '20 19:12 Andrew-Elwood

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?

Cinchoo avatar Dec 09 '20 21:12 Cinchoo