Results 1 to 2 of 2

Thread: How to stop re-reading of errorneous record once again

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    28

    Default 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....

  2. #2
    Join Date
    Dec 2008
    Posts
    3

    Default

    '#' 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 ?

    - Vaibhav

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •