Allowed transport mode code

Error FX-SCH-A-000346 Factur-X

Value of 'ram:ModeCode' 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:ModeCode is neither empty nor included in the code list defined for this code.

What the rule means

The code indicates the transport mode used for the consignment. A value that is not allowed cannot be reliably assigned to a defined transport mode.

Please provide an allowed value for `ram:ModeCode`

The value provided for ram:ModeCode is not included in the applicable code list. You can change the value or leave the element empty.

What to do
  1. Find ram:ModeCode in the consignment’s delivery details.
  2. Enter a value from the code list defined for this code, or leave the value empty.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:ModeCode>INVALID</ram:ModeCode>
✓ Correct
<ram:ModeCode/>
Technical details

The test accepts an empty code or a value included in the code list identified by 41.

Where the rule applies

The rule applies to ram:ModeCode within the consignment’s transport movement in the delivery details.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ ram:RelatedSupplyChainConsignment/ram:SpecifiedLogisticsTransportMovement/ ram:ModeCode
Test expression (assert/@test)
string-length($codeValue41)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=41]/enumeration[@value=$codeValue41]