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

Validate Header generate a very large message. #2249

Open
Hieu-Nguyen-1 opened this issue Apr 23, 2024 · 2 comments
Open

Validate Header generate a very large message. #2249

Hieu-Nguyen-1 opened this issue Apr 23, 2024 · 2 comments
Labels

Comments

@Hieu-Nguyen-1
Copy link

Hieu-Nguyen-1 commented Apr 23, 2024

Describe the bug
HeaderValidated() will generate a very large message when validating a file with encoding different from the configured encoding.

Expected behavior
Remove the large message

Screenshots
image

@JoshClose
Copy link
Owner

Do you mean a different CultureInfo? The delimiter is token from CultureInfo.TextInfo.ListSeparator. My guess is it's not finding a delimiter and is using that large text because of that.

This seems like a configuration issue to me.

@Hieu-Nguyen-1
Copy link
Author

Hieu-Nguyen-1 commented Apr 25, 2024

Do you mean a different CultureInfo?
No, it's a different Encoding. In my case, my file is Unicode Encoding, my Csv Reader Config is UTF8 Encoding.
image

My guess is it's not finding a delimiter and is using that large text because of that.
-> Yes.

image

args.Context.Reader.HeaderRecord = all text of a file

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

No branches or pull requests

2 participants