A Peppol invoice fails validation when its XML breaks a rule in the Peppol BIS Billing specification or the EN 16931 semantic model it is built on. Read the error code and the XPath location first, then trace that location to the source field in your system. Common causes are missing identifiers, wrong tax categories and invalid code lists.
Key takeaways
- A Peppol rejection is a rule failure with a location, so start with the error code and the XPath, not the wording of the message.
- Most rejections come from a small set of causes: missing mandatory fields, wrong tax categories, invalid code lists and malformed identifiers.
- The fix belongs in the mapping from your source system, so correcting the XML by hand only hides the defect for the next invoice.
- Run the same validation before sending, using the same rule set your access point applies, so errors surface while you can still act on them.
What does Peppol invoice validation check?
Peppol invoice validation checks three layers. The first is XML well-formedness and the structure of the UBL document. The second is the schema, which defines which elements exist, their order and their data types. The third is the set of business rules, which decide whether the content makes sense as an invoice.
The business rules come from the Peppol BIS Billing documentation, which is maintained by the Peppol authority and builds on the EN 16931 semantic model for electronic invoices. Each rule has an identifier, a description and a test expression. A validator evaluates that expression against your XML and reports a failure when the test is not met. The official documentation is published at the Peppol BIS Billing documentation, and it is the reference to check against when a message is unclear.
Validation is strict by design. A file can look correct to a human reader and still fail because one mandatory identifier is in the wrong element. This is why the error report matters more than the visual invoice.
How do you read a Peppol error message?
Read a Peppol error message from the top down, in this order: rule identifier, severity, location and text. The rule identifier tells you which requirement failed. The location, usually an XPath expression, tells you where in the document the failure sits. The text is a human description that can be vague, so use the identifier to look up the exact requirement.
Severity matters. Some messages are errors that block acceptance, while others are warnings that flag a likely problem without rejecting the file. Treat warnings as work to do now, because a warning today can become an error when a validator version changes.
Map the XPath back to your source system. An element in the invoice usually comes from one field in the ERP, CRM or billing module, sometimes through a transformation. If the mapping is hard to trace, that is an integration problem worth fixing in the integration layer rather than in each document.
Which errors cause most rejections?
Most rejections fall into a few groups. Missing mandatory elements are the most common, such as a buyer reference, a seller identifier or a payment means where the rules require one. Tax category problems come next, especially when a line carries a category that does not match the tax total or the tax rate used in the document.
Code list errors are also frequent. Currency codes, country codes, unit codes and tax category codes must come from the allowed lists. A value that is correct in your ERP, such as a local label for a unit, can be invalid in UBL because it is not on the list. Identifier format errors follow, where an endpoint or a participant identifier does not match the scheme declared for it.
Arithmetic consistency is a separate group. Totals must equal the sum of the lines, and the tax amounts must agree with the taxable base. Rounding differences between your system and the validator are a common source of these failures, because the rounding happens at different levels.
Hypothetical examples
Here are two hypothetical scenarios: both describe invoices from an imagined business and are meant only to show how to trace an error, not to report any real result.
In the first scenario, a manufacturer sends invoices where the buyer electronic address is filled from a legacy field that holds a trade name instead of an identifier. The validator reports an identifier format failure with an XPath pointing at the endpoint element. The reading process is to confirm the scheme in the message, compare it with the mapping, and then correct the mapping so that every future invoice carries the right identifier.
In the second scenario, a services company exports invoices where one tax category is set on the line but the document-level tax subtotal uses another category. The validator reports a mismatch on each affected invoice. Tracing the XPath shows that the line mapping reads a product flag, while the header total reads a customer flag. The fix is to align the two mappings so both derive the category from the same rule, and then to re-run validation on a sample of past files to confirm the defect is gone.
How do you fix errors before sending?
Fix errors before sending by validating each generated invoice in a test environment that applies the same rules as production. Then work through a checklist for each failure, and only resubmit when the report is clean.
- Record the rule identifier, severity and XPath for every failure.
- Locate the source field or transformation that produces the failing element.
- Decide whether the defect is data, mapping or configuration, because each needs a different owner.
- Correct the root cause and regenerate a sample of invoices, including edge cases such as credit notes and multi-currency lines.
- Validate again and keep the report with the release notes so the fix can be audited later.
Avoid patching individual XML files by hand. A manual correction fixes one document and leaves the mapping broken, so the next batch fails in the same way. Automated tests with a fixed set of sample invoices catch regressions when the mapping changes.
Where do the e-invoicing rules come from?
The European baseline for electronic invoicing in public procurement is set by Directive 2014/55/EU, which refers to the European standard for the semantic data model of electronic invoices. You can read the directive text on EUR-Lex, the official publication of EU law. Private transactions, national implementations and the Peppol network each add their own requirements on top of that baseline, so the rules that apply to a given invoice depend on the parties and the country involved.
This article is general information and not legal or tax advice. Confirm the requirements that apply to your invoices with a qualified adviser before you change your process.
Should you validate in-house or rely on the access point?
Validate in-house when you need to catch errors before the file leaves your environment, and rely on the access point as the final check. Each approach has limits. An in-house validator only applies the rule set you configure, so an outdated version can pass files that the network rejects. An access point reports the failure only after submission, which costs time when many invoices are affected.
The practical setup uses both. Run a current validator in the build or release pipeline, and keep the access point rejection messages in the monitoring process so that any new failure type is logged and mapped to its root cause. Teams that do this well treat rejections as signals about the integration, not as isolated mistakes.
Rui Codex offers technical implementation support for Peppol e-invoicing, including mapping, validation setup and error handling, and it does not provide legal, tax or compliance advice. The service is described on the Rui Codex Peppol e-invoicing page, and related integration work is covered on the system integrations page. Rui Codex is independent and is not an official Odoo partner. The founder, Selman Altinay, has 12+ years of hands-on experience and 200+ delivered projects.
Frequently Asked Questions
What is the first thing to check in a Peppol error message?
The first thing to check is the rule identifier, because it names the exact requirement that failed. Use it to look up the rule in the official documentation rather than relying on the description text alone. Then note the XPath location so you can find the source field behind the failing element.
Why does an invoice pass my checks but fail in the network?
Your checks may apply an older rule set or fewer rules than the network validator. Confirm which version your tooling uses and update it to match the current specification. Then compare the failing rule identifier against your test coverage to find the gap.
Should I correct rejected Peppol invoices manually?
Manual correction of a single file can resolve the immediate problem, but it does not fix the mapping that created the error. Correct the source or transformation, regenerate a sample, and validate again. Keep the manual fix only as a temporary measure with a logged follow-up.
Who is responsible for fixing validation errors?
Responsibility depends on the cause. Data errors belong to the team that maintains the source records, mapping errors belong to the integration owner, and configuration errors belong to whoever manages the validator or access point. Assign each rejection to one owner so it does not stall between teams.
How can I contact Rui Codex about a Peppol integration?
You can request a project consultation at the Rui Codex contact page or email info@ruicodex.com to discuss your project. Describe the rule identifiers and the systems involved so the discussion can start from the actual failures.
Conclusion
Peppol invoice validation is most useful when each error is read as a precise statement about one field, one rule and one mapping. Start with the rule identifier and the XPath, trace them to the source, and fix the cause rather than the file. Keep a current validator in your pipeline and treat network rejections as feedback on the integration. If you want an outside engineering view of your invoice flow, request a project consultation at the Rui Codex contact page, or see delivered integration work on the Rui Codex case studies page.
Sources
- Peppol BIS Billing documentation - OpenPeppol
- Directive 2014/55/EU on electronic invoicing in public procurement - European Union