//n8n pitfalls · critical
SplitInBatches + Wait nodes cause state loss
Combining SplitInBatches with Wait nodes causes state loss. The batch iterator state is not preserved across wait periods, leading to items being skipped or reprocessed. Process batches synchronously or use a queue-based approach instead.
- Category
- n8n_general
Source: the n8n-mcp pitfall list, maintained by the tool's author
Mistakes AI agents make in n8n
- Execute Workflow + Wait nodes cause data loss
- Never use append on sheets with formula columns
- $env expressions blocked in Code nodes
- saveExecutionProgress fills disk space
- IF node uses branch true/false not sourceIndex
- Code node $input.all() vs $input.first()
- Per-item execution on large datasets
- Webhook node response must be sent explicitly
- Error Trigger workflow must be separate
- $getWorkflowStaticData global loses data in loops