All error codes › UBL-CR-666
UBL-CR-666 – A UBL invoice shall not include an AdditionalDocumentReference simultaneously referring…
Erroren16931applies to Romanian e-Factura
What the rule says
A UBL invoice shall not include an AdditionalDocumentReference simultaneously referring an Invoice Object Identifier and an Attachment
How to fix it
Remove the element from the invoice: EN 16931 does not use it. The validator shows the exact line.
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):
not(//cac:AdditionalDocumentReference[cbc:DocumentTypeCode = '130']/cac:Attachment)
Related rules
UBL-CR-001A UBL invoice should not include extensionsUBL-CR-002A UBL invoice should not include the UBLVersionID or it should be 2.1UBL-CR-003A UBL invoice should not include the ProfileExecutionIDUBL-CR-004A UBL invoice should not include the CopyIndicatorUBL-CR-005A UBL invoice should not include the UUIDUBL-CR-006A UBL invoice should not include the IssueTimeUBL-CR-007A UBL invoice should not include the PricingCurrencyCodeUBL-CR-008A UBL invoice should not include the PaymentCurrencyCodeUBL-CR-009A UBL invoice should not include the PaymentAlternativeCurrencyCodeUBL-CR-010A UBL invoice should not include the AccountingCostCodeUBL-CR-011A UBL invoice should not include the LineCountNumericUBL-CR-012A UBL invoice should not include the InvoicePeriod StartTime