Receiving · typed in
A goods receipt typed by hand.
500 lines, quantities as text.
12,5 kg, 3 pce… and env. 4 kg
The problem
A value nobody expected.
- « env. 4 kg », line 317.
- The script cannot read it.
What is not changed
The entry stays as it is.
- The fix is made at the source.
- The hub does not guess.
The trap
One line stops everything.
- The script throws.
- None of the 500 lines is written.
What had to be written
on-error: { default: dlq }One line.
- The script says unreadable instead of guessing.
- The line becomes a dead letter.
- A 34-line scenario, two manifests.
The result
499 written, one set aside.
- L0317, as it was read.
- L0316 and L0318 in the table.
The limit
An exception gives the script's line.
- Not the file's.
Try it
The scenario replays locally.
Every step is published with its output.