Disallowed 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 empty and is not included in the code list identified by 16. An empty value passes this check.

What the rule means

The code specifies the type of delivery. The rule ensures that a supplied value belongs to the corresponding code list.

Please check the invoice line delivery type code

The value in ram:DeliveryTypeCode is not included in the applicable code list. You can review and adjust the supplied code based on this rule.

What to do
  1. Locate the affected ram:DeliveryTypeCode in the invoice line delivery terms.
  2. Check whether its value is included in the applicable code list.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty value or a value present in FACTUR-X_EXTENDED_codedb.xml under code-list identifier 16.

Where the rule applies

The rule applies to 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]