Callback for WriterExceptions #1788
fazleskhan
started this conversation in
General
Replies: 1 comment
-
What is "bad user data"? What do you mean by it fails? |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I am writing +40k records out from a badly formatted set of user data. Instead of using Linq-to-Object to materialize the data, which I have found too slow, I am using Linq/LinqKit to pass the IEnumerable result directly to the csvhelper writer. Execution time is down to 14sec but the writer fails when it encounters bad user data. Is there a way to register an ExceptionCallback when writing out records like there is for readers. I would like to not have to individually handle every error condition in my Linq/LinqKit expression query and instead just log the error.
Beta Was this translation helpful? Give feedback.
All reactions