errorESPfacturae

ES-R-003:FACe routing codes required

Spanish B2G invoices need OC (oficina contable), OG (organo gestor), UT (unidad tramitadora).

Severity
Fatal
Rule set
facturae
Country
ESP
Fix type
INPUT REQUIRED

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

1.

Get DIR3 codes

OC, OG, UT from DIR3 directory

2.

Add centres

In AdministrativeCentres section

XML Example

Generic example based on the rule's target XPath. Your actual XML structure may differ.

Before
<!-- Triggers validation error -->
<AdministrativeCentres></AdministrativeCentres>
After
<!-- Corrected -->
<AdministrativeCentres>VALID_VALUE</AdministrativeCentres>

Technical Reference

XPathXPath: /fe:Facturae/Parties/BuyerParty/AdministrativeCentres
Specfacturae

Common 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

Share this guide:

Handle ES-R-003 Automatically in Your Pipeline

The compliance engine auto-remediates this error with controlled safety policies and evidence pack generation.