The end-user identifier’s scheme must be allowed

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

A non-empty value of @schemeID on ram:GlobalID is not included in the code list designated for this context. This check also accepts an empty value.

What the rule means

A non-empty value must match an entry in the identification-scheme code list with identifier 11. This keeps the scheme designation for the end user’s global identifier within the specified values.

Please use an allowed identification scheme for the end-user identifier

The non-empty value of @schemeID on the end-user identifier is not allowed in this context. The rule accepts an empty value or a value included in the designated code list.

What to do
  1. Locate ram:GlobalID under ProductEndUserTradeParty.
  2. Check the value of @schemeID against the code list applicable to this context.
  3. Regenerate the invoice and validate it again.
Technical details

The check accepts an empty @schemeID value or a value present in the code list with id=11.

Where the rule applies

The rule checks the @schemeID attribute of the end user’s ram:GlobalID in ProductEndUserTradeParty.

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]