ES-R-003:FACe routing codes required
Spanish B2G invoices need OC (oficina contable), OG (organo gestor), UT (unidad tramitadora).
Engine Classification
Business data required · Explicit input workflow · No assumptions made
Required input: Oficina Contable (OC), Órgano Gestor (OG), Unidad Tramitadora (UT)
What is ES-R-003?
ES-R-003 is a fatal validation rule defined in the facturae specification (ESP national rules). It validates the AdministrativeCentres element under Parties > BuyerParty in the UBL invoice XML.
When this rule fires, the invoice is non-compliant and will be rejected by Peppol access points and national validation services. The sending system receives a rejection response and the invoice does not reach the buyer.
Target path: XPath: /fe:Facturae/Parties/BuyerParty/AdministrativeCentres
Why This Error Matters
Required for routing through Spanish FACe platform.
ES-R-003 is a hard failure. Invoices that trigger this rule are rejected at the access point and never reach the recipient. In Peppol networks, this means your sending system receives an MLR (Message Level Response) with a rejection status. The invoice must be corrected and re-sent, adding delay to your payment cycle.
Validator Behavior
- ·Causes invoice rejection
- ·Error returned: ES-R-003
- ·Specification: facturae
How to Fix It
Get DIR3 codes
OC, OG, UT from DIR3 directory
Add centres
In AdministrativeCentres section
XML Example
Generic example based on the rule's target XPath. Your actual XML structure may differ.
<!-- Triggers validation error --> <AdministrativeCentres></AdministrativeCentres>
<!-- Corrected --> <AdministrativeCentres>VALID_VALUE</AdministrativeCentres>
Technical Reference
XPath: /fe:Facturae/Parties/BuyerParty/AdministrativeCentresCommon Causes
- ·Missing routing codes
- ·Invalid DIR3 codes
Seeing this in production? The API handles ES-R-003 automatically. See the fix response →
Frequently Asked Questions
Spanish B2G invoices need OC (oficina contable), OG (organo gestor), UT (unidad tramitadora).
Add all three administrative centre codes from DIR3. You can also use Invoice Navigator's automatic Fixer tool to correct this instantly.
Yes, ES-R-003 is a critical error that will cause invoice rejection. It must be fixed before submission.
Related Errors
Last updated: 27 February 2026
Handle ES-R-003 Automatically in Your Pipeline
The compliance engine auto-remediates this error with controlled safety policies and evidence pack generation.