Allowed shipping party scheme code

Error FX-SCH-A-000802 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 neither empty nor included in the code list used by this rule.

What the rule means

The code list defines which values are allowed for this scheme identifier. A different value cannot identify the global identifier in accordance with the rule.

Please check the shipping party ID scheme code

The value of @schemeID on the shipping party’s global identifier is not accepted by this rule. You can leave the attribute empty or use a value included in the applicable code list.

What to do
  1. Check the value of @schemeID on ram:GlobalID.
  2. Leave the value empty or use a value included in the code list.
  3. Generate the invoice again and validate it.
Good to know

For this rule, an empty value or an entry from code list 11 is allowed.

Technical details

The test accepts an empty code value or a value present in the code list identified by 11.

Where the rule applies

The rule applies to @schemeID of ram:GlobalID of ram:ShipFromTradeParty in the delivery context.

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