Element 'ram:DeliveryTypeCode' must occur exactly 1 times.
Within ram:ApplicableTradeDeliveryTerms, ram:DeliveryTypeCode does not occur exactly once: the element is missing or appears more than once.
The delivery terms section must contain exactly one delivery type code so that the delivery term is specified unambiguously.
ram:DeliveryTypeCode is missing from ram:ApplicableTradeDeliveryTerms or appears more than once. You can correct the number of occurrences in the XML.
- Locate
ram:ApplicableTradeDeliveryTermsin the invoice agreement section. - Make sure it contains exactly one
ram:DeliveryTypeCode. - Generate the invoice again and validate it once more.
<ram:ApplicableTradeDeliveryTerms/>
<ram:ApplicableTradeDeliveryTerms> <ram:DeliveryTypeCode>...</ram:DeliveryTypeCode> </ram:ApplicableTradeDeliveryTerms>
Technical details
The test counts the direct ram:DeliveryTypeCode elements under ram:ApplicableTradeDeliveryTerms and requires a count of 1.
The rule applies within ram:ApplicableTradeDeliveryTerms in the document-level agreement section.
rule/@context)assert/@test)