Templates / Validate incoming XRechnung invoices from IMAP and archive them with Data Tables

Validate incoming XRechnung invoices from IMAP and archive them with Data Tables

Ready for 3.0

by Samet Sen · 12 views · created 2026-08-06 · Invoice Processing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 20 nodes and runs when a new email arrives over IMAP. It uses only n8n's built-in nodes.

How it runs

Trigger: When a new email arrives over IMAP.

  1. Set Configuration (Edit Fields (Set)): sets 3 fields: notificationAddress, senderAddress, autoReplyEnabled
  2. Find XML Attachment (Code): runs custom JavaScript code
  3. Has XML Attachment? (If): checks a condition and branches into true / false
  4. Extract XML Text (Extract from File): extracts data from a file (text)
  5. Convert XML to JSON (XML): converts between XML and JSON
  6. Parse XRechnung Fields (Code): runs custom JavaScript code
  7. Capture Processing Error (Code): runs custom JavaScript code
  8. Validate Invoice (EN 16931) (Code): runs custom JavaScript code
  9. Notify Unreadable File (Send Email): sends an email over SMTP
  10. Validation Passed? (If): checks a condition and branches into true / false

…plus 8 more steps. See the full node list below.

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (10)

From the author

Quick overview This workflow reads incoming invoice emails via IMAP, detects and parses XRechnung (UBL) XML attachments, validates required fields and totals, archives the XML to disk, logs key values to an n8n Data Table, and sends email notifications to…

Excerpt from Samet Sen's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.