All error codes › BR-RO-101
BR-RO-101 – Bucharest buyer city must be a sector code
Errorroapplies to Romanian e-Factura
What the rule says
If the Buyer's country Code (BT-55) is RO and the Buyer's country subdivision (BT-54) is RO-B (corresponding to Bucharest Municipality), then the Buyer city (BT-52) must be coded using the code list SECTOR-RO(SECTOR1, SECTOR2, SECTOR3, SECTOR4, SECTOR5, SECTOR6).
How to fix it
With county RO-B (Bucharest) the city must be one of SECTOR1 ... SECTOR6 (no space), not 'Bucuresti'.
UBL: cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CityName
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 normalize-space(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity) = 'RO-B' and not(normalize-space(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CityName) = $SECTOR-RO-CODES)
Related rules
BR-RO-001Wrong CIUS-RO specification identifierBR-RO-010Invoice number has no digitBR-RO-030Foreign-currency invoice needs RON as VAT currencyBR-RO-040VAT point date code not allowedBR-RO-065Seller VAT / tax ID missingBR-RO-081Seller street address missingBR-RO-082Buyer street address missingBR-RO-091Seller city missingBR-RO-092Buyer city missingBR-RO-100Bucharest seller city must be a sector codeBR-RO-110Seller county code invalidBR-RO-111Buyer county code invalid