Use an allowed identifier scheme for the ship-to party

Error FX-SCH-A-001097 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 non-empty value of schemeID is not included in the value list defined for this identifier. This check allows an empty value.

What the rule means

The value list ensures that the specified identifier scheme is one of the values defined for this global identifier.

Please use an allowed identifier scheme for the ship-to party

The identifier scheme specified for the ship-to party’s global identifier is not in the defined value list. Change schemeID to an allowed entry or leave it empty.

What to do
  1. Find ram:GlobalID for the ship-to party in the invoice line.
  2. Check the schemeID value against the defined value list, or leave it empty.
  3. Generate the invoice again and validate it.
Technical details

An empty value passes this check; otherwise, schemeID must match an entry in the value list identified by 11.

Where the rule applies

This rule applies to the schemeID attribute of the ship-to party’s ram:GlobalID within an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeDelivery/ram:ShipToTradeParty/ram:GlobalID
Test expression (assert/@test)
string-length($codeValue11)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=11]/enumeration[@value=$codeValue11]