Provide a delivery type code

Error FX-SCH-A-001026 Factur-X

Element 'ram:DeliveryTypeCode' must occur exactly 1 times.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

ram:DeliveryTypeCode is missing from ram:ApplicableTradeDeliveryTerms or occurs more than once.

What the rule means

The delivery type code describes the delivery terms of the invoice line. The rule requires exactly one corresponding element.

Please provide the invoice line’s delivery type code

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.

What to do
  1. Open the delivery terms for the relevant invoice line.
  2. Make sure they contain exactly one ram:DeliveryTypeCode element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeDeliveryTerms/>
✓ Correct
<ram:ApplicableTradeDeliveryTerms>
  <ram:DeliveryTypeCode/>
</ram:ApplicableTradeDeliveryTerms>
Technical details

Within ram:ApplicableTradeDeliveryTerms, the number of direct ram:DeliveryTypeCode elements is checked to be exactly one.

Where the rule applies

The rule applies to the delivery terms of an invoice line in ram:ApplicableTradeDeliveryTerms.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeAgreement/ram:ApplicableTradeDeliveryTerms
Test expression (assert/@test)
count(ram:DeliveryTypeCode)=1