Element 'ram:IssuerAssignedID' must occur exactly 1 times.
Within ram:BuyerOrderReferencedDocument, ram:IssuerAssignedID does not occur exactly once. The element is missing or appears more than once.
The identifier assigned by the issuer identifies the referenced buyer order. Exactly one identifier element is required in this document context.
ram:IssuerAssignedID is missing from the buyer order reference document, or the element appears more than once. Exactly one entry identifies the reference unambiguously.
- Find
ram:IssuerAssignedIDinram:BuyerOrderReferencedDocument. - Add the element if it is missing, or remove duplicates so that it occurs exactly once.
- Generate the invoice again and validate it once more.
<ram:BuyerOrderReferencedDocument/>
<ram:BuyerOrderReferencedDocument> <ram:IssuerAssignedID/> </ram:BuyerOrderReferencedDocument>
Technical details
The XPath test counts the direct child elements ram:IssuerAssignedID and requires the count to be 1.
The rule applies within ram:BuyerOrderReferencedDocument in the trade agreement.
rule/@context)assert/@test)