MSAMM
Back to course

Oracle Integration Cloud: Building Integrations That Survive Production · Module 8 · Error handling, faults and retries

Partial failure in a batch

Lesson 86 of 175 · 2 min

Four hundred records, record 200 fails. Stop, skip, or roll back — and rolling back is usually not available once the first 199 posted. That last clause is the fact people design around too late. A loop is not a transaction. Each record was committed in the target as it was processed, and the target has no notion of a batch that can be undone. "We will roll back on failure" is a plan that requires a capability that does not exist, and discovering that at record 200 is discovering it in production. SO THERE ARE REALLY TWO OPTIONS AND THE THIRD IS COMPENSATION. STOP: 199 posted, 201 not attempted. Clean to reason about IF you know where it stopped, which means the run must record its position — and rerunning has to resume rather than restart, or the 199 are duplicated. SKIP: 399 posted, one in the dead letter.

The full lesson is part of the course

The video, the complete written lesson and the module quiz are included in Oracle Integration Cloud: Building Integrations That Survive Production, with a certificate on completion and a fourteen-day refund window.

Get the free lessons by email

We will email you a link to every free lesson in this course. No account needed, and one message only.

In this module: Module 8 · Error handling, faults and retries

  1. 1The four kinds of failure
  2. 2Faults versus errorsFree preview
  3. 3Scope and fault handlers
  4. 4What to do with a caught fault
  5. 5Retry: how many, how far apart
  6. 6The dead letter, and who reads it
  7. 7Partial failure in a batch
  8. 8Compensation, and its limits
  9. 9Alerting a human
  10. 10Resubmission: doing it safely
  11. 11Errors that are not failures
  12. 12What breaks: five error-handling failures
  13. 13Lab briefing · Break it five ways