errorcountryESPfacturae

ES-R-003:FACe routing codes required

Fix: Add all three administrative centre codes from DIR3. Provide the required value in the free validator.

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 rejected by Peppol access points and never reaches 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 — the invoice must be corrected and re-sent before it can reach the recipient.

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. Invoice Navigator detects this error and prompts for the required business data before applying a safe fix.

Yes, ES-R-003 is a critical error that will cause invoice rejection. It must be fixed before submission.

Related Errors

Related Content

Last updated: 3 March 2026

Share this guide:

Validate your invoice

Drop your XML here to check for ES-R-003

Fix ES-R-003 with guided input

Upload your invoice and we'll ask for the missing data, then apply a safe, auditable fix.