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

delimited layout, wrong parsing when multiple fields are empty at the end of the row #80

Open
falcopellegrino opened this issue Aug 25, 2018 · 0 comments

Comments

@falcopellegrino
Copy link

if I have multiple empty field at the end of a row I get the separator as value:

Explained better here:
https://stackoverflow.com/questions/52017242/flatfile-library-delimited-layout-wrong-parsing-when-multiple-fields-are-empty

I don't know if I miss some attribute configurations...

I download the code, in debug it seems to be a problem in class DelimitedLineParser, when check:

if (line.Length > linePosition + delimiterSize)

at first glance could be a solution the next line???

if (line.Length >= linePosition + delimiterSize)

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

1 participant