Contact us
Insights

What belongs in a reject record

A rejected record should say what failed, why, and how to fix it. What to capture so rejects get resolved, not ignored.

The problem

Rejected and forgotten

A well-built pipeline rejects records that fail its checks rather than loading bad data. That’s the right decision, but only half the job. A reject table holding a copy of the row and the word “error” tells nobody what to do. It grows quietly, and the missing records show up months later as a gap in a report.

Contents

What every reject record needs

The original record

Exactly as received, with the source and the file or batch it came in.

Which rule failed

A plain name such as “unknown product code”, not a database error number.

The value that failed

The field and value that broke the rule, so nobody has to search the record.

When and which run

The time and the run that rejected it, to link rejects to changes.

Its status

Open, fixed, replayed, or ignored, with a reason for anything ignored.

Working through rejects

How to resolve rejected records

Step 1 of 4

  1. Fifty records with one unknown product code are one problem, not fifty.

  2. Product data to whoever maintains products, customer data to the sales office.

  3. Correct the data where it was entered, so it doesn’t happen again.

  4. Reprocess the fixed records and mark them resolved.

Count rejects, not just errors

A pipeline that runs without errors can still reject half its input. Track how many records each run rejects, by rule, and alert when it rises. For example: rejects for invalid VAT codes jumping from none to dozens on the day a supplier changes their file format points straight at the cause.

A reject table nobody looks at?

Tell us how your pipelines handle bad records today. A few lines are enough.

Tell us what’s not working