e-Factura validator

All error codes › BR-RO-111

BR-RO-111 – Buyer county code invalid

Errorroapplies to Romanian e-Factura

What the rule says

If the Buyer's country Code (BT-55) is RO, then the Buyer's country subdivision (BT-54) must be coded using the ISO 3166-2: RO code list (ex. "RO-B" for Bucharest, "RO-AB" for Alba County...).

How to fix it

Use the ISO 3166-2:RO code: RO-B for Bucharest, RO-CJ for Cluj, RO-IF for Ilfov, etc. Not the county name.

UBL: cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity

Check your invoice for free

Paste the XML and see every error with the exact fix and the correct amounts.

Where it is checked in the XML

Context: /ubl:Invoice | /cn:CreditNote

Test (XPath):

normalize-space(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode) = 'RO' and not(normalize-space(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity) = $ISO-3166-RO-CODES)

Related rules