Replies: 3 comments 2 replies
-
|
The pattern is: Format exceptions are not recoverable. The file you have is NOT a valid CSV file. It is malformed. The final quote character makes it invalid. You can try to use the "lax" mode, which will do a best-effort parsing and doesn't throw exceptions. But, the output records might not be what you expect. |
Beta Was this translation helpful? Give feedback.
-
|
My apologies, there is a bug here. It appears that this scenario where the final field is a single double-quote character is not handled properly. |
Beta Was this translation helpful? Give feedback.
-
|
The bug should be fixed with 1.4.1 which I just published to nuget. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I use the following document (two lines) with the code below, it reads the first line and then goes into an infinite loop. Can you please help me understand what is happening here? I would expect the code to use the exception handling to know that the second record was not proper and then break the while loop as there is not more records (or move on to the next one if there were more records after the malformed one).
Beta Was this translation helpful? Give feedback.
All reactions