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 loading unicode CSV #29

Open
CypressPhill opened this issue Sep 1, 2014 · 0 comments
Open

Error loading unicode CSV #29

CypressPhill opened this issue Sep 1, 2014 · 0 comments

Comments

@CypressPhill
Copy link

Hello,

I get the following error when loading a unicode CSV:

"Unhandled Exception: LINQtoCSV.NameNotInTypeException: The input file has column name ""rijksregisternummer"" in the first record, but there is no field or property with that name in type "XXXXXX.CrmCustomizations.Workflow.Models.Contact".

I don't get the error when loading the same file in ANSI encoding.

The column is in the csv data class.

public class Contact
{
[CsvColumn(Name = "rijksregisternummer", FieldIndex = 1)]
public string Rijksregisternummer { get; set; }

I already tried different CsvFileDescription properties (e.g. FirstLineHasColumnNames, EnforceCsvColumnAttribute, TextEncoding = Encoding.Unicode, ...) but nothing helps.

Is this a bug? is there a workaround?

Thanx,

Cypress

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