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

Error: the value cannot be null. Parameter name 'key' #27

Open
michaelsogos opened this issue Aug 27, 2014 · 2 comments
Open

Error: the value cannot be null. Parameter name 'key' #27

michaelsogos opened this issue Aug 27, 2014 · 2 comments

Comments

@michaelsogos
Copy link

Hi,

First thing, very great component!

When i set the property IgnoreUnknownColumns to True, the Read method raise the error in subject.

I created a model that doesn't map every column, but only needed.
I used CsvColumnAttribute specifing the NAME and the FIELD INDEX.

What could be a problem is the name of the column? Something with space like "MY IMAGE PATH"?

@utillity
Copy link

try to also use IgnoreTrailingSeparatorChar - if the lines end with a separator, the last column has an "empty" column name which causes this

@dipendrashekhawat
Copy link

Facing the same issue - "Value cannot be null. Parameter name: key" while trying to read csv file.

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

3 participants