Allowed identifier scheme for the payee’s legal organization

Error FX-SCH-A-000517 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 the schemeID attribute on ram:ID is neither empty nor included in the code list used by this rule.

What the rule means

If an identifier scheme is provided for the payee’s legal organization, it must come from the permitted code list. The rule also accepts an empty value.

Please provide an allowed identifier scheme for the payee’s legal organization

This rule does not recognize the identifier scheme in schemeID on ram:ID within ram:SpecifiedLegalOrganization as allowed. You can use a value from the applicable code list or leave schemeID empty.

What to do
  1. Check schemeID on ram:ID within ram:SpecifiedLegalOrganization for ram:PayeeTradeParty.
  2. Use an entry from the applicable code list or leave schemeID empty.
  3. Regenerate the invoice and check it again.
Technical details

The test accepts an empty attribute value or an entry from FACTUR-X_BASIC_codedb.xml, code list 12.

Where the rule applies

The rule applies to the schemeID attribute of ram:ID within ram:SpecifiedLegalOrganization for ram: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_BASIC_codedb.xml')/codedb/cl[@id=12]/enumeration[@value=$codeValue12]