The scheme ID of the ultimate ship-to party identifier must be allowed

Error FX-SCH-A-001116 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 schemeID on ram:GlobalID is not found in the code list used by this rule. The test accepts an empty checked code value or a value contained in code list ID 11.

What the rule means

The scheme ID specifies the scheme used to interpret the global identifier. A value that is not allowed cannot be associated with a valid scheme under this rule.

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

The value of schemeID on ram:GlobalID does not match an allowed entry in the checked code list. The rule accepts an empty checked code value or a value listed there.

What to do
  1. Locate ram:GlobalID for the ultimate ship-to party and check the value of schemeID.
  2. Compare the value with the entries in the code list used by this rule.
  3. Generate the invoice again and validate it.
Technical details

The test passes if $codeValue11 is empty or occurs as an enumeration/@value in codedb/cl[@id=11].

Where the rule applies

The rule applies to the value of the schemeID attribute on ram:GlobalID of the ultimate ship-to party of an invoice line.

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