UBL-CR-666: A UBL invoice shall not include an AdditionalDocumentReference simultaneously referring…
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[UBL-CR-666]-A UBL invoice shall not include an AdditionalDocumentReference simultaneously referring an Invoice Object Identifier and an Attachment
not(//cac:AdditionalDocumentReference[cbc:DocumentTypeCode = '130']/cac:Attachment)UBL-CR-666 is a fatal rule in the schema layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.
What this rule requires
This rule forbids the element //cac:AdditionalDocumentReference[cbc:DocumentTypeCode = '130']/cac:Attachment in a UBL document. The test is not(//cac:AdditionalDocumentReference[cbc:DocumentTypeCode = '130']/cac:Attachment), evaluated for /ubl:Invoice, /cn:CreditNote, so the rule reports every place where that element is present.
How to fix
Remove //cac:AdditionalDocumentReference[cbc:DocumentTypeCode = '130']/cac:Attachment from the document. If your system always writes it, change the export so that it leaves this element out.
Guidance on this rule. The original text above is authoritative.
Where to go next
No published Peppol BIS Billing UBL release comparison lists a change to UBL-CR-666.
Validate an invoice against these rules · All release changes