Element 'ram:DeliveryTypeCode' must occur exactly 1 times.
ram:DeliveryTypeCode does not occur exactly once in ram:ApplicableTradeDeliveryTerms. It is either missing or occurs more than once.
The delivery terms for an invoice line must contain exactly one code specifying the type of delivery.
ram:DeliveryTypeCode is missing or appears more than once in the invoice line delivery terms. You can correct the number of elements in this location.
- Locate the affected
ram:ApplicableTradeDeliveryTerms. - Make sure it contains exactly one
ram:DeliveryTypeCode. - Generate the invoice again and validate it once more.
<ram:ApplicableTradeDeliveryTerms/>
<ram:ApplicableTradeDeliveryTerms> <ram:DeliveryTypeCode/> </ram:ApplicableTradeDeliveryTerms>
Technical details
The XPath test counts the direct ram:DeliveryTypeCode elements within ram:ApplicableTradeDeliveryTerms and requires a count of 1.
The rule applies within ram:ApplicableTradeDeliveryTerms in an invoice line agreement.
rule/@context)assert/@test)