Allowed delivery type code

Error FX-SCH-A-000320 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 of ram:DeliveryTypeCode is not empty and is not included in the code list used by this rule. An empty value explicitly satisfies this rule’s test.

What the rule means

The code list restricts the delivery type code to standardized values so that it can be interpreted consistently.

Please use an allowed delivery type code

The value in ram:DeliveryTypeCode is not recognized as allowed by this rule. You can compare it with the code list that applies to this field.

What to do
  1. Check the value in ram:DeliveryTypeCode under ram:ApplicableTradeDeliveryTerms.
  2. Compare it with the codes allowed for this field.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty value or a value found in code list 36 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to ram:DeliveryTypeCode within ram:ApplicableTradeDeliveryTerms in the document-level agreement section.

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