Element 'ram:AssociatedDocumentLineDocument' must occur exactly 1 times.
Within ram:IncludedSupplyChainTradeLineItem, ram:AssociatedDocumentLineDocument does not occur exactly once. The element is either missing or appears more than once.
The associated document is a required part of the structure of each invoice line. Exactly one occurrence keeps that structure unambiguous.
A line item is missing ram:AssociatedDocumentLineDocument, or the element appears more than once. The structure can be corrected so that it occurs exactly once.
- Locate each
ram:IncludedSupplyChainTradeLineItem. - Make sure that
ram:AssociatedDocumentLineDocumentoccurs exactly once within it. - Regenerate the invoice and validate it again.
<ram:IncludedSupplyChainTradeLineItem/>
<ram:IncludedSupplyChainTradeLineItem> <ram:AssociatedDocumentLineDocument/> </ram:IncludedSupplyChainTradeLineItem>
Technical details
The test counts direct ram:AssociatedDocumentLineDocument elements under ram:IncludedSupplyChainTradeLineItem and requires a count of 1.
The rule applies within each ram:IncludedSupplyChainTradeLineItem to the associated document ram:AssociatedDocumentLineDocument.
rule/@context)assert/@test)