Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Andrew-Elwood opened this issue Dec 2, 2020 · 1 comment
Open

Comments

@Andrew-Elwood
Copy link

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

@Cinchoo
Copy link
Owner

Cinchoo commented Dec 9, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants