Element 'ram:DeliveryTypeCode' must occur exactly 1 times.
ram:DeliveryTypeCode is missing from ram:ApplicableTradeDeliveryTerms or occurs more than once.
The delivery type code describes the delivery terms of the invoice line. The rule requires exactly one corresponding element.
The delivery terms for the invoice line are missing the delivery type code, or it appears more than once. You can resolve this by having a single ram:DeliveryTypeCode element.
- Open the delivery terms for the relevant invoice line.
- Make sure they contain exactly one
ram:DeliveryTypeCodeelement. - Generate the invoice again and validate it.
<ram:ApplicableTradeDeliveryTerms/>
<ram:ApplicableTradeDeliveryTerms> <ram:DeliveryTypeCode/> </ram:ApplicableTradeDeliveryTerms>
Technical details
Within ram:ApplicableTradeDeliveryTerms, the number of direct ram:DeliveryTypeCode elements is checked to be exactly one.
The rule applies to the delivery terms of an invoice line in ram:ApplicableTradeDeliveryTerms.
rule/@context)assert/@test)