Getting payroll results out
The biggest routine extract in the system, and three ways it fails: too big, too slow, or quietly early. The shape that avoids all three, and why each choice is made.
◆ What goes wrongthe plain version.
Payroll is the largest routine extract in the system: every person times every kind of pay times every period. Pull it naively and one of three things happens. The report exceeds the size a single response can carry and fails. It exceeds the time a report is allowed to run and fails. Or it succeeds and quietly includes a run still being processed, so the numbers change when you pull again. Two failures are loud. The third is a wrong answer.
◆ The shape that workscompleted runs, one period at a time, landed unchanged.
| Choice | Why |
|---|---|
| Completed runs only | A run still processing is a moving target. Extracting finalised results means the same pull gives the same answer tomorrow, which is what makes the ledger tie repeatable. |
| One period per pull | The size and time limits are per report. A period at a time stays far inside both, and a failed pull loses one period, not the history. |
| Landed unchanged | The raw layer holds exactly what the source sent, dated. When a number is questioned, the answer starts from evidence, not from a transformation someone has to unwind. |
| Off the close calendar | Extraction competes with payroll processing for the same system. The schedule runs after runs complete and never during the close window. Practitioner guidance, to be confirmed in the customer system. |
Corrections from the off cycle page are the one wrinkle: a correction can land in a period already extracted. The period of the correction is pulled again, which is cheap precisely because pulls are one period at a time.
- extract
- Pulling data out of the source system on a schedule.
- completed run
- A payroll run that is finalised. Anything earlier gives numbers that still move.
- pay period
- The span one payroll run covers.
- raw layer
- Where extracted data lands exactly as received, dated, before anything is built.
- close window
- The days each month when the books are being finalised.
- pull
- One scheduled extraction of one pay period.
- correction
- An off cycle payment changing a period after it was extracted.