Every data load meets bad rows. A null in a mandatory column, a date that is not a date, a reference code that matches nothing: each one is small. What decides whether it becomes a problem is what your job does next.
In many PowerCenter estates, the answer is “whatever the developer happened to build”. One job writes rejects to a file nobody opens. Another fails the whole session over a single record. A third finishes green while a Filter quietly drops rows. When someone finally asks where a customer went, there is no record, and the usual fix is to rerun from the start and hope nothing loads twice.
This post describes one error framework that answers the same four questions for every job: which rows failed and why, where they went, how they get corrected and reloaded, and how a failed job restarts without loading data twice. It is a design guide with the checks we recommend you run, and it ends with a table of the pitfalls that most often break such a framework.
1. Classify Errors Before You Build Anything
Treating every error the same way is the root of most reject-handling mess. A bad date and a database outage are not the same kind of problem, and they should not trigger the same response. Define three classes and give each one a rule:
| Error class | Example | Response |
|---|---|---|
| Data error | Null in a mandatory column, invalid date, unmatched reference code | Reject the row, record the reason, continue the run |
| Technical error | Datatype overflow, target constraint violation | Reject the row, or stop the job once the threshold is reached |
| System failure | Database down, disk full, network loss | Stop the job, raise an alert, trigger recovery |
Once this table is agreed, a single record can no longer halt a session by accident, and a real outage can no longer be skipped as “just a reject”.
2. Validate Inside the Mapping
The default reject file only sees rows the engine or the database refuses. That is too late and too vague. Validate earlier, inside the mapping, where you can explain the failure in words. Catching bad data where it enters the pipeline is one of the most effective fixes for the common data integration challenges.
An Expression transformation applies every rule and assigns an error code and a readable message to each failed row. A Router then splits the flow: valid rows continue to the target, failed rows go to the common error table. Here is how the rules look in practice:
| Rule | Code | Message stored |
|---|---|---|
| Customer ID is not null | E101 | Customer ID is missing |
| Date of birth is a valid date and not in the future | E102 | Date of birth is not a valid date |
| Country code exists in the reference table | E103 | Country code not found in reference data |
| Amount is numeric and greater than zero | E104 | Amount is invalid |
Package these checks as a reusable mapplet, so all mappings apply the same rules and the same codes. A row that fails more than one rule should carry all its codes, not just the first, so the person fixing it sees everything in one pass.
3. One Common Error Table
Every job writes to one table with one layout. This is what turns scattered reject files into something a support team can query.
| Column | Purpose |
|---|---|
| RUN_ID | Which run produced the error |
| WORKFLOW_NAME / SESSION_NAME | Which job it came from |
| SOURCE_KEY | The business key of the failed row |
| ERROR_CLASS | Data, technical or system |
| ERROR_CODE / ERROR_MESSAGE | Why it failed, in plain words |
| ROW_DATA | The full row, so it can be fixed without going back to the source |
| STATUS | New, Fixed, Reprocessed or Ignored |
| CREATED_AT | When the error was raised |
Add two views on top. A support view shows the technical detail. A business view shows only the key, the plain-language reason and the status. Storing the full row matters more than it looks: without it, correcting a rejected record means hunting for the original in the source.
4. What the Reject File Still Catches
Some rows pass your validation and still fail at the target, for example on a constraint or a database rule. Keep the built-in facilities as a safety net:
- Reject (.bad) files hold rows refused by the engine or the database.
- PMERR row error logs let the session write row errors to a relational log, which is far easier to query than flat files.
The .bad file marks each row and column with indicator codes. Few people remember them, which is part of why these files go unread:
| Indicator | Where | Meaning |
|---|---|---|
| 0, 1, 2, 3 | Row indicator | Insert, update, delete, reject |
| D | Column indicator | Valid data |
| O | Column indicator | Overflow |
| N | Column indicator | Null |
| T | Column indicator | Truncated |
Load these into the same error table, or include them in the run summary, so nothing important lives in a file nobody opens. Confirm the indicator codes against your PowerCenter version before you publish them in a runbook.
5. Thresholds and Alerts
A feed with 40% bad rows should not look like a normal night. Give every session an error threshold, so it stops once a defined error count is reached. Set the number lower for critical feeds, and higher for feeds where a few bad rows are expected.
Then attach an Email task that sends a run summary to the feed owner: rows read, loaded, rejected and filtered, plus the top error codes. The alert should reach someone who can act on it, not a shared inbox that nobody watches.
6. Account for Every Row
This is the step that closes the “silent loss” gap. Rows removed by a Filter or dropped by an unmatched lookup must either be written to the error table or be counted. Each run then verifies one equation:
rows read = rows loaded + rows rejected + rows filtered
Here is a worked example. A customer feed brings in 1,000 rows:
| Count | Value |
|---|---|
| Rows read | 1,000 |
| Rows loaded | 962 |
| Rows rejected (error table) | 31 |
| Rows filtered (counted) | 7 |
Check: 962 + 31 + 7 = 1,000, so the run reconciles. If the total came to 998, the run would be flagged, and you would know two rows disappeared before anyone notices a wrong report. That is the difference between evidence and hope.
7. Recovery and Safe Reprocessing
Pick a recovery strategy per session. One setting for all jobs is a mistake. Choose by job type:
| Job type | Typical choice |
|---|---|
| Independent, small loads | Fail task and continue workflow |
| Loads that are safe to repeat | Restart task |
| Long-running loads | Resume from last checkpoint |
Enable high-availability workflow recovery where your environment supports it.
Reprocess through the same logic. Corrected rows must not take a side door into the target. Rows marked Fixed pass through the same validation and the same update-else-insert logic as the main load, keyed on the business key. Their status then moves through a simple lifecycle:
| Status | Meaning |
|---|---|
| New | Row failed and is waiting for correction |
| Fixed | Corrected by a data steward, ready to reprocess |
| Reprocessed | Loaded successfully; never picked up again |
| Ignored | Closed with approval, will not be loaded |
A row that fails validation again returns to New. Because the load is keyed on the business key, a row reprocessed twice still loads once. This is the same idea as an idempotent job, one that can be re-run safely without creating duplicate records, which we cover in Top Data Engineering Services for Big Data Pipelines.
A concrete case: customer CUST-20417 is rejected with E102, “Date of birth is not a valid date”. A steward corrects the date and sets the status to Fixed. The next reprocessing run validates it, loads it by business key and marks it Reprocessed. If someone triggers the run twice by mistake, the target still holds one row.
8. Test It by Breaking It
A framework you have not seen fail is a framework you cannot trust. Prove each piece with a deliberate test and record the result:
| Test | Expected result |
|---|---|
| Row with a null mandatory column | Rejected with a clear reason, run continues |
| Row with an invalid date | Rejected with a clear reason |
| Unmatched reference code | Captured in the error table, not silently dropped |
| Feed above the error threshold | Session stops, alert is sent |
| Run killed mid-load | Recovers, no duplicates in the target |
| Rerun after failure | Each row loaded once |
| Corrected row reprocessed | Loaded once, status moves to Reprocessed |
| Same corrected row reprocessed twice | Still loaded once |
Check reconciliation after every test. The equation in section 6 should balance every time, including after the killed run.
9. Common Pitfalls
| Pitfall | Symptom | Fix |
|---|---|---|
| Relying on the .bad file alone | Rejects pile up in files nobody reads | Validate in the mapping, keep .bad as a safety net |
| Filter with no count | Source rows vanish, no record | Route filtered rows to the error table or count them |
| No error threshold | A 40% bad feed loads with no alert | Set a stop-on-errors value and an Email task |
| Error table without the full row | Corrections need a trip back to the source | Store the whole row in ROW_DATA |
| Reprocessing without a key check | Duplicates after reloading fixed rows | Update-else-insert on the business key |
| Recovery never tested | Restart fails or loads twice when it matters | Kill a session mid-load on purpose and verify |
| Only the first failed rule recorded | Same row rejected again after a partial fix | Capture every failed rule per row |
Make Every Row Count with Ksolves
Ksolves helps teams put this framework into practice through Informatica consulting, 24/7 PowerCenter support and migration to IDMC. We have built restartability for a telecom operator’s PowerCenter ETL and fail-safe patterns on Informatica CAI and CDI that stop silent row loss and make re-runs safe. Whether you need your current reject handling reviewed or one framework rolled out across your estate, our engineers can design, test, and run it with you.
Summary and Recommendation
The sequence we recommend is: classify errors first, validate inside the mapping, send every failure to one error table, keep the reject file as a safety net, set thresholds and alerts, reconcile every run, then design recovery and reprocessing to be safe to repeat. Each step gives you something you can measure, and each one catches what the step before it cannot.
Next step: Request a PowerCenter error-handling review with Ksolves. We will look at how your jobs treat rejected rows and failed runs today, and show how one framework could work across your estate.
Environment: Informatica PowerCenter. Examples and figures are illustrative. Re-check option names and behaviour against your own PowerCenter version before publishing.
Frequently Asked Questions
What is reject handling in Informatica PowerCenter?
Reject handling in Informatica PowerCenter is the process of capturing rows that fail to load, recording why they failed, and getting corrected rows back into the target. Rows can be rejected by the database or by mapping logic, and PowerCenter can record them in reject (.bad) files and row error logs.
What happens if rejected rows in PowerCenter are never reviewed?
Unreviewed PowerCenter rejected rows leave the target incomplete while the load can still appear to have run normally. Reports and downstream systems then use partial data, and tracing the missing records gets harder as source data changes.
How do I read a PowerCenter .bad reject file?
A PowerCenter .bad file starts each record with a row indicator and marks each column with a column indicator. Row indicators show the intended operation (0 insert, 1 update, 2 delete, 3 reject), while column indicators show whether a value is valid (D), overflowed (O), null (N) or truncated (T).
Should I use PowerCenter reject files or row error logging?
PowerCenter row error logging is usually easier to query than reject files because it can write errors to relational tables with messages and session details. Reject files remain useful for rows rejected at the writer, so many teams keep both and report on them together.
Which PowerCenter recovery strategy should a session use?
The right PowerCenter recovery strategy depends on whether the session can be rerun without creating duplicates. The options are restarting the task, failing the task and continuing the workflow, or resuming from the last checkpoint, and checkpoint resume suits long loads where repeating completed work is costly.
When should we review our PowerCenter error handling framework?
Review your PowerCenter error handling framework when row counts stop matching, reruns create duplicates, or the platform is about to be upgraded or migrated. Ksolves offers Informatica consulting that can assess existing jobs before those changes.
Who can support PowerCenter jobs that keep failing or rejecting data?
PowerCenter support for failing or rejecting jobs can come from an in-house ETL team or a specialist provider. Ksolves provides Informatica consulting, 24/7 PowerCenter support and migration to IDMC.
Still have questions? Contact our team.
![]()
5 MIN READ