Element 'ram:SpecifiedLineTradeAgreement' must occur exactly 1 times.
ram:SpecifiedLineTradeAgreement does not occur exactly once in the invoice line. The element is either missing or present more than once.
ram:SpecifiedLineTradeAgreement contains the agreement details for the invoice line. Each line must have exactly one such agreement section.
The invoice line’s agreement section is missing or appears more than once. Exactly one such section is expected for each invoice line.
- Find the affected
ram:IncludedSupplyChainTradeLineItem. - Check that it contains exactly one
ram:SpecifiedLineTradeAgreement. - Generate the invoice again and validate it once more.
<ram:IncludedSupplyChainTradeLineItem/>
<ram:IncludedSupplyChainTradeLineItem> <ram:SpecifiedLineTradeAgreement/> </ram:IncludedSupplyChainTradeLineItem>
Technical details
In the invoice-line context, the rule checks whether the number of direct ram:SpecifiedLineTradeAgreement elements equals 1.
The rule applies within each invoice line (ram:IncludedSupplyChainTradeLineItem).
rule/@context)assert/@test)