BT-125 "Attached document" (ram:AttachmentBinaryObject) may occur no more than once within "Additional Supporting documents" (BG-24).
Within this additional supporting document, ram:AttachmentBinaryObject occurs more than once. The attached document BT-125 may occur no more than once in this document.
BT-125 contains the attached document in document group BG-24. Limiting it to at most one ram:AttachmentBinaryObject prevents multiple document contents from being assigned to the same supporting document.
The additional supporting document contains multiple ram:AttachmentBinaryObject elements. The document content can be attached only once in this document.
- Remove any extra
ram:AttachmentBinaryObjectelements from the additional supporting document. - Check
AdditionalReferencedDocument.AttachmentBinaryObjector theattachmentBinaryObjectparameter in the call toAddAdditionalReferencedDocument(...). - Generate the invoice again and validate it once more.
<ram:AdditionalReferencedDocument> <ram:TypeCode>916</ram:TypeCode> <ram:AttachmentBinaryObject>QUJD</ram:AttachmentBinaryObject> <ram:AttachmentBinaryObject>REVG</ram:AttachmentBinaryObject> </ram:AdditionalReferencedDocument>
<ram:AdditionalReferencedDocument> <ram:TypeCode>916</ram:TypeCode> <ram:AttachmentBinaryObject>QUJD</ram:AttachmentBinaryObject> </ram:AdditionalReferencedDocument>
AdditionalReferencedDocument.AttachmentBinaryObject(BT-125)AdditionalReferencedDocument.Filename(BT-125-2)FacturXInvoice.AddAdditionalReferencedDocument(id, typeCode, issueDateTime, name, referenceTypeCode, attachmentBinaryObject, filename, uriID)(attachmentBinaryObject: BT-125)
Technical details
The test counts the ram:AttachmentBinaryObject elements in the current ram:AdditionalReferencedDocument and permits no more than one.
Additional supporting documents in ram:AdditionalReferencedDocument with ram:TypeCode 916.
rule/@context)assert/@test)- 2026-08-312026-08-31 · Addedcustom level "information" for `CII-SR-475` and `CII-SR-476` because both rules have a wrong rule context in CEN Schematron 1.3.16 (see https://github.com/ConnectingEurope/eInvoicing-EN16931/issues/508); replaced by BR-TMP-4 and BR-TMP-5 in XRechnung Schematron