Dec 10th, 2008, 07:49 AM
How to stop re-reading of errorneous record once again
I am reading a flat file and do some business logic before writing into table. Some of the records are rejected in reader side and few in writer side as per my business. If any record is rejected, my business throws an exception to update record counts.
The issue is if any record is rejected at writer side, the exception has occured. but the same record reading once again and compare the hash code of previous record.
How can we stop the reading of same record if an exception has occured.
Please guide me to solve this.
Thanks in Advance....
Dec 12th, 2008, 01:12 PM
'#' is a default comment character for FlatFileReader, so can you
use a FlatFileWriter to add this in front of the record that errors
out ? That way, it won't be read next time.
Let me know if this is not clear and you need further help or if you
see any problem in how this will work for your problem ?