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.
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.
- Column indicator. Column indicators appear after
every column of data. The alphabetical character indicators tell whether
the data was valid, overflow, null, or truncated.
Row Indicators
The first column in the reject file is
the row indicator. The number listed as the row indicator tells the writer what
to do with the row of data.
If a row indicator is 3, the writer
rejected the row because an update strategy expression marked it for reject.
If a row indicator is 0, 1, or 2,
either the writer or the target database rejected the row. To narrow down the
reason why rows marked 0, 1, or 2 were rejected, review the column indicators
and consult the session log.
Column Indicators
After the row indicator is a column
indicator, followed by the first column of data, and another column indicator.
Column indicators appear after every column of data and define the type of the
data preceding it.
|
After you correct the target data in each of
the reject files, append “.in” to each
reject file you want to load into the target database. For example, after
you correct the reject file, t_AvgSales_1.bad, you can rename it
t_AvgSales_1.bad.in.
After you correct the reject file and rename
it to reject_file.in, you can use the reject loader to send those files
through the writer to the target database.
Use the reject loader utility from the command
line to load rejected files into target tables. The syntax for reject loading
differs on UNIX and Windows NT/2000 platforms.
Hi kashif thanks for all your posts can please help me in one issue that I want a sample file view after correcting the reject file I want to know how the data looks from murali
ReplyDelete