Use an allowed scheme value for the end-user ID

Error FX-SCH-A-000717 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 provided for schemeID is not included in the list of values allowed for this identifier. The check also accepts an empty value.

What the rule means

The schemeID value specifies the identification scheme used to interpret the global ID. A value that is not allowed cannot be reliably associated with an accepted scheme.

Please use an allowed scheme value for the end-user ID

The schemeID value for the end user’s global ID is not allowed. Change it to a value from the list provided for this identifier.

What to do
  1. Check the value of the schemeID attribute on ram:GlobalID.
  2. Compare the value with the list of allowed values for this scheme.
  3. Regenerate the invoice and validate it again.
Technical details

The value is checked against list 11 in FACTUR-X_EXTENDED_codedb.xml; an empty value also passes the check.

Where the rule applies

The rule applies to the schemeID attribute of ram:GlobalID of ram:ProductEndUserTradeParty in the invoice agreement.

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