Use an allowed delivery type code

Error FX-SCH-A-001027 Factur-X

Value of 'ram:DeliveryTypeCode' is not allowed.

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

The value in ram:DeliveryTypeCode is not included in the associated code list. This check permits an empty value.

What the rule means

An allowed code maps the delivery type to a value from the designated code list.

Please use an allowed delivery type code

The value provided in ram:DeliveryTypeCode is not included in the designated code list. You can change the value or leave it empty.

What to do
  1. Locate ram:DeliveryTypeCode in the invoice line’s delivery terms.
  2. Replace its value with an entry from the designated code list, or leave its content empty.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:DeliveryTypeCode>INVALID</ram:DeliveryTypeCode>
✓ Correct
<ram:DeliveryTypeCode/>
Technical details

A non-empty value is compared with code list 16; an empty value also passes this value check.

Where the rule applies

The rule checks ram:DeliveryTypeCode in the delivery terms of an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeAgreement/ram:ApplicableTradeDeliveryTerms/ram:DeliveryTypeCode
Test expression (assert/@test)
string-length($codeValue16)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=16]/enumeration[@value=$codeValue16]