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
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.
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.
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.
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.