Element 'ram:IssuerAssignedID' must occur exactly 1 times.
The ram:DeliveryNoteReferencedDocument document does not contain exactly one ram:IssuerAssignedID element. The element is either missing or occurs more than once.
The ram:IssuerAssignedID element contains the identifier assigned by the issuer to the referenced delivery note. Exactly one such element ensures that the delivery note reference is stated unambiguously.
The delivery note reference is missing the identifier assigned by the issuer, or that identifier appears more than once. You can resolve this by providing exactly one ram:IssuerAssignedID.
- Find
ram:DeliveryNoteReferencedDocumentin the delivery section. - Make sure it contains exactly one
ram:IssuerAssignedID. - Generate the invoice again and validate it.
<ram:DeliveryNoteReferencedDocument/>
<ram:DeliveryNoteReferencedDocument> <ram:IssuerAssignedID>DN-123</ram:IssuerAssignedID> </ram:DeliveryNoteReferencedDocument>
Technical details
The test counts the direct ram:IssuerAssignedID child elements of ram:DeliveryNoteReferencedDocument and requires the count to equal 1.
The rule applies to the ram:DeliveryNoteReferencedDocument document in the invoice’s delivery section.
rule/@context)assert/@test)