Route failed PDF processing to manual review in n8n
11 February 2026
The first PDF has a committed result. The second fails a permanent validation check. Route the second item to manual review, preserving the first result and its receipt. A note saying “the batch failed” is not enough information to decide what may be retried.
Separate a handled item failure from a stopped workflow
Assign each input a stable source ID before calling the processor. Configure the validation or processing step to expose an item-level failure branch where the node supports it, or wrap one item in a separately controlled processing path. Check the response, since an HTTP request can succeed while the application reports a validation failure in its body.
An n8n error workflow can help handle a failed workflow execution. It does not automatically supply a safe review record for every rejected input in a continuing batch. Record which errors the item branch handles and which unexpected failures should stop the execution. n8n error-handling documentation
Keep one result record per source
| Source | Intended action | Evidence to keep |
|---|---|---|
| First, valid PDF | Commit the authorised output once. | Source ID and version, job reference, output reference and durable completion receipt. |
| Second, invalid PDF | Hold only this item in the restricted review queue. | Source ID and version, execution or attempt reference, safe error category, responsible team and next action. |
Carry the source ID explicitly through node transformations. Check item linking if a node splits or combines inputs. Do not use array position to infer the failed source after filtering. n8n item-linking concepts
Build the review payload from allowed fields rather than forwarding a raw error object. It should refer an authorised reviewer to the source through the controlled document system, without embedding PDF bytes, session headers, access tokens or signed URLs. A permanent validation error should wait for corrected input or a documented decision. Blindly retrying the same bytes does not fix it.
Prove the manual route works
Use one valid and one deliberately invalid synthetic file. Verify the first output by its own receipt, then verify the stored second-item review record and its owner. Replay only the corrected item and confirm that the first output is not generated again. The acceptance cases describe checks to run. The proposed two-file scenario is not a production execution report.
Part of the Run a PDF workflow in n8n and recover a partial job guide.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
