Disallowed identifier for the ship-to ID

Error FX-SCH-A-000454 Factur-X

Value of '@schemeID' 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 the schemeID attribute on ram:GlobalID is not included in the designated code list. An empty value is allowed by the test condition.

What the rule means

If supplied, the identifier must belong to the schemes permitted for this global ID. This makes it possible to identify the scheme being used.

Please use an allowed identifier for the ship-to ID

The identifier on the ship-to party’s ram:GlobalID does not match the designated code list. You can check the value or leave the identifier empty.

What to do
  1. Check the value of the schemeID attribute on ram:GlobalID against the designated code list.
  2. Leave schemeID empty if no scheme identifier is to be supplied.
  3. Generate the invoice again and validate it.
Technical details

The test checks whether schemeID is empty or its value occurs in the code list with ID 5.

Where the rule applies

The rule applies to the ram:GlobalID of the ship-to party within ram:ShipToTradeParty.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ ram:ShipToTradeParty/ram:GlobalID
Test expression (assert/@test)
string-length($codeValue5)=0 or document('FACTUR-X_BASIC-WL_codedb.xml')/codedb/cl[@id=5]/enumeration[@value=$codeValue5]