Scheme for the payee’s legal organisation identifier

Error FX-SCH-A-000918 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 is neither empty nor included in the code list assigned to this identifier.

What the rule means

@schemeID identifies the scheme of the legal organisation identifier. The rule permits an empty value or a value included in the associated code list.

Please use an allowed scheme for the payee’s legal organisation identifier

The scheme in @schemeID of the payee’s legal organisation identifier is not allowed. The value may be empty or drawn from the associated code list.

What to do
  1. Locate ram:ID in ram:SpecifiedLegalOrganization under PayeeTradeParty.
  2. Check @schemeID and use only an entry from the associated code list or an empty value.
  3. Regenerate the invoice and validate it again.
Technical details

The check accepts an empty string or a value listed in FACTUR-X_EXTENDED_codedb.xml under code list ID 12.

Where the rule applies

The rule applies to @schemeID on ram:ID within ram:SpecifiedLegalOrganization for the payee under PayeeTradeParty.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:PayeeTradeParty/ram:SpecifiedLegalOrganization/ram:ID
Test expression (assert/@test)
string-length($codeValue12)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=12]/enumeration[@value=$codeValue12]