Hi,

I'm trying to create a route which will read thousands of CSV records from a
file, unmarshal using BeanIO, and perform further processing after that.
During unmarshalling, if few records have validation error which results in
InvalidRecordException, that record should be moved to an error file, and
remaining records processed. 
I explored multiple options in Camel-BeanIO, however, can't seem to find the
right combination to do so. If i use ignoreInvalidRecordException option,
then the error is ignored, and I can't capture the error row. If I use
onException, and handle the error, or use doTry-doCatch, then the remaining
records are not processed.

How can I achive catching the InvalidRecordException, and then proceeding
with remaining file processing?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-BeanIO-catch-and-ignore-InvalidRecordException-tp5762999.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to