Invalid 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 neither empty nor present in the designated code list.

What the rule means

The code specifies the delivery type. A value that is not permitted cannot identify the agreed delivery type according to the rule.

Please use an allowed `ram:DeliveryTypeCode`

The delivery type code provided is not accepted. You can change the value or leave it empty.

What to do
  1. Find ram:DeliveryTypeCode in ram:ApplicableTradeDeliveryTerms.
  2. Use a value permitted by the code list for the code, or leave it empty.
  3. Generate the invoice again and validate it again.
Technical details

The XPath test passes when the checked value is empty or is found in code list 36.

Where the rule applies

The rule applies to ram:DeliveryTypeCode within ram:ApplicableTradeDeliveryTerms in the seller-buyer agreement.

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]