Element 'ram:IssuerAssignedID' must occur exactly 1 times.
The ram:DespatchAdviceReferencedDocument 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 despatch advice. Exactly one such element ensures that the despatch advice reference is stated unambiguously.
The despatch advice 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:DespatchAdviceReferencedDocumentin the delivery section. - Make sure it contains exactly one
ram:IssuerAssignedID. - Generate the invoice again and validate it.
<ram:DespatchAdviceReferencedDocument/>
<ram:DespatchAdviceReferencedDocument> <ram:IssuerAssignedID>DA-123</ram:IssuerAssignedID> </ram:DespatchAdviceReferencedDocument>
Technical details
The test counts the direct ram:IssuerAssignedID child elements of ram:DespatchAdviceReferencedDocument and requires the count to equal 1.
The rule applies to the ram:DespatchAdviceReferencedDocument document in the invoice’s delivery section.
rule/@context)assert/@test)