Engine Classification
Financial or legal field · Modification blocked by policy
Reason: Spanish B2G invoices must use FacturaE 3.2.x format. This requires generating the invoice in the correct FacturaE XML schema from your invoicing software. UBL/CII formats cannot be auto-converted to FacturaE.
What is ES-R-002?
ES-R-002 is a fatal validation rule defined in the facturae specification (ESP national rules). It validates the SchemaVersion element under fe:Facturae > FileHeader in the UBL invoice XML.
When this rule fires, the invoice is rejected by Peppol access points and never reaches the buyer.
Target path: XPath: /fe:Facturae/FileHeader/SchemaVersion
Why This Error Matters
Spanish FACe platform requires specific FacturaE version.
ES-R-002 is a hard failure — the invoice must be corrected and re-sent before it can reach the recipient.
Validator Behavior
- ·Causes invoice rejection
- ·Error returned: ES-R-002
- ·Specification: facturae
How to Fix It
Check schema
Must be 3.2.x version
Validate format
Against official FacturaE schema
XML Example
Generic example based on the rule's target XPath. Your actual XML structure may differ.
<!-- Triggers validation error --> <SchemaVersion></SchemaVersion>
<!-- Corrected --> <SchemaVersion>VALID_VALUE</SchemaVersion>
Technical Reference
XPath: /fe:Facturae/FileHeader/SchemaVersionCommon Causes
- ·Wrong schema version
- ·Using UBL instead of FacturaE
Seeing this in production? The API handles ES-R-002 automatically. See the fix response →
Frequently Asked Questions
Spanish B2G invoices must use FacturaE 3.2.x format.
Use FacturaE 3.2.1 or 3.2.2 schema version. This error involves a protected field — Invoice Navigator flags it in your pipeline so your team can correct it at the source.
Yes, ES-R-002 is a critical error that will cause invoice rejection. It must be fixed before submission.
Related Errors
Related Content
Last updated: 3 March 2026
Validate your invoice
Drop your XML here to check for ES-R-002
Detect ES-R-002 before submission
This error involves a financial field that can't be auto-modified. We'll flag it with a clear diagnosis so you can fix it at the source.