InvoiceSpec / Rules Registry / ro-efactura-cius / RO-EFACTURA-BR-RO-010
fatal ASSERTION · RO-EFACTURA-BR-RO-010 RO e-Factura (Romanian ANAF CIUS-RO) (UBL-2.1) Jurisdiction: RO

RO-EFACTURA-BR-RO-010: Romanian ANAF CIUS-RO CustomizationID must match urn:cen.eu:en16931:2017#compliant#urn:efactura.mfinante.ro:CIUS-RO:1.0.1

Official RO e-Factura (Romanian ANAF CIUS-RO) Spec ↗
01. Technical Specification & XPath Evaluation Context

This fatal Schematron rule (RO-EFACTURA-BR-RO-010) enforces the mandatory Romanian CIUS-RO customization identifier in UBL 2.1 invoices. The context XPath /ubl:Invoice/cbc:CustomizationID selects the CustomizationID element (BT-24, Business Term for specification identifier) within the Invoice root. The test compares the element's text content to the exact string 'urn:cen.eu:en16931:2017#compliant#urn:efactura.mfinante.ro:CIUS-RO:1.0.1'. If the value does not match exactly (including case, spacing, and URN structure), the assertion fails. This rule is critical for ANAF e-Factura compliance because the CustomizationID signals to the Romanian tax authority that the invoice adheres to the CIUS-RO profile, which extends EN 16931 with Romanian-specific requirements. The URN is composed of the EN 16931 base identifier, the compliance marker '#compliant', and the CIUS-RO specific URN 'urn:efactura.mfinante.ro:CIUS-RO:1.0.1'. Any deviation (e.g., missing '#compliant', incorrect version, or typo) will cause rejection by the ANAF system.

Evaluated XPath Location:
/ubl:Invoice/cbc:CustomizationID
Deterministic Remediation Steps

1. Locate the cbc:CustomizationID element within the Invoice root. 2. Ensure its text content exactly matches the required URN: 'urn:cen.eu:en16931:2017#compliant#urn:efactura.mfinante.ro:CIUS-RO:1.0.1'. 3. Verify that the URN includes the '#compliant' segment and the correct CIUS-RO version '1.0.1'. 4. Remove any leading/trailing whitespace or line breaks inside the element. 5. If using a template or generator, update the constant to this exact string. 6. Re-validate the invoice against the CIUS-RO Schematron to confirm the rule passes.

02. Side-by-Side UBL-2.1 Payload Diff (Rejected vs. Compliant)
--- a/invoice-rejected.xml (RO-EFACTURA-BR-RO-010) FAIL
1 <Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
2 xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
3 <!-- Incorrect CustomizationID: missing '#compliant' and uses wrong CIUS-RO version -->
4 <cbc:CustomizationID>urn:cen.eu:en16931:2017#urn:efactura.mfinante.ro:CIUS-RO:1.0.0</cbc:CustomizationID>
5 <!-- ... other invoice elements ... -->
6 </Invoice>
+++ b/invoice-compliant.xml (EN 16931 VALID)
PASS
1 <Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
2 xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
3 + <!-- Correct CustomizationID for CIUS-RO 1.0.1 -->
4 + <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:efactura.mfinante.ro:CIUS-RO:1.0.1</cbc:CustomizationID>
5 <!-- ... other invoice elements ... -->
6 </Invoice>
03. Interactive RO e-Factura (Romanian ANAF CIUS-RO) Validation & Auto-Fix Workbench
3 CREDITS
invoice.xmlUBL-2.1
DETECTED SOURCECustom ERP / Billing Engine
BT-131 LINE SUM0.00 EUR
BT-106 HEADER0.00 EUR
SCHEMATRON: 1 FATAL, 1 WARN· 1ms
RO e-Factura (ANAF CIUS-RO)
BR-DE-15Buyer reference / Leitweg-ID (BT-10) is missing
Spec & Diff
xpath: /ubl:Invoice/cbc:BuyerReference

No <cbc:BuyerReference> (BT-10) found. Mandatory in XRechnung 3.0 (BR-DE-15) and required in Peppol BIS 3.0 (PEPPOL-EN16931-R003) when OrderReference is absent.

fix: Insert <cbc:BuyerReference>991-12849-74</cbc:BuyerReference> in the document header.

RO-EFACTURA-BR-RO-Z2Missing ISO 3166-2:RO County Code in cbc:CountrySubentity (BT-39)
Spec & Diff
xpath: /ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity

Romanian ANAF CIUS-RO requires ISO 3166-2:RO county codes (e.g. RO-B, RO-CJ).

fix: Insert <cbc:CountrySubentity>RO-B</cbc:CountrySubentity> inside PostalAddress.

Automate Custom ERP / Billing Engine → RO e-Factura (ANAF CIUS-RO) AP Delivery

Deploy certified Peppol Access Point & ZUGFeRD ERP connector

04. Adjacent RO e-Factura (Romanian ANAF CIUS-RO) Assertions Browse All Rules →