Blog Archive

Thursday, September 29, 2011

How to correct and load the rejected files when the session completes


During a session, the Informatica Server creates a reject file for each target instance in the mapping. If the writer or the target rejects data, the Informatica Server writes the rejected row into the reject file. By default, the Informatica Server creates reject files in the $PMBadFileDir server variable directory.
The reject file and session log contain information that helps you determine the cause of the reject. You can correct reject files and load them to relational targets using the Informatica reject loader utility. The reject loader also creates another reject file for the data that the writer or target reject during the reject loading. 
Complete the following tasks to load reject data into the target:
  • Locate the reject file.
  • Correct bad data.
  • Run the reject loader utility.

NOTE: You cannot load rejected data into a flat file target

After you locate a reject file, you can read it using a text editor that supports the reject file code page.
Reject files contain rows of data rejected by the writer or the target database. Though the Informatica Server writes the entire row in the reject file, the problem generally centers on one column within the row. To help you determine which column caused the row to be rejected, the Informatica Server adds row and column indicators to give you more information about each column:
  • Row indicator. The first column in each row of the reject file is the row indicator. The numeric indicator tells whether the row was marked for insert, update, delete, or reject.

2 comments:

  1. the information was helpful,but I have one more question here.When I process a file with 100 records 50 gets rejected,when I am trying to process the same file only those 50 records should be picked either it loads or gets rejected is secondary and the valid records should not duplicate in target.

    ReplyDelete
    Replies
    1. Hi Ayodhya,

      I am confused with your second sentence "those 50 records should be picked either it loads or gets rejected is secondary and the valid records should not duplicate in target." can you please elaborate more?

      Delete