Error loading unicode CSV
Opened this issue · 0 comments
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