Replies: 1 comment 1 reply
-
The exception message should have a lot of information in it. Can you post that here? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I'm reading a file and I'm getting an "Unable to cast object of type 'System.Int32' to type 'System.Nullable`1[System.Decimal]'" exception.
It's not caught by the TypeConverterException, where I can check which column has thrown the exception through "ex.MemberMapData.Names[0]", instead it's caught by the CsvHelperException where I've been unable to check which column it's throwing the error. Is there a way to check which specific column is throwing it?
I'm using CsvHelper 27.1.1, and the solutions found in stackoverflow seem to be outdated like https://stackoverflow.com/questions/21609348/in-csvhelper-how-to-catch-a-conversion-error-and-know-what-field-and-what-row-it
Thanks in advance and sorry for my english.
Ricardo.
Beta Was this translation helpful? Give feedback.
All reactions