Allowed scheme for the organization identifier

Error FX-SCH-A-000823 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:ID is not in the code list used by this rule. The test permits an empty value.

What the rule means

@schemeID identifies the scheme of the legal organization’s identifier. The check restricts its value to entries in the associated code list.

Please use an allowed scheme for the delivery location’s organization identifier

The scheme in @schemeID of ram:ID is not in the associated code list. You can change the value to one of the entries allowed there.

What to do
  1. Find ram:ID in ram:SpecifiedLegalOrganization under ShipToTradeParty.
  2. Check the value of @schemeID against the code list applicable to this identifier.
  3. Use a value listed there, or leave the value empty.
  4. Regenerate the invoice and check it again.
Technical details

The XPath test permits an empty $codeValue12; otherwise, the value must occur as an enumeration in codedb/cl[@id=12].

Where the rule applies

Applies to ram:ID in ram:SpecifiedLegalOrganization of ShipToTradeParty; the value of @schemeID is checked.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ ram:ShipToTradeParty/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]