Invalid payee identifier

Error FX-SCH-A-000598 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 not in the designated code list. The test accepts a missing or empty value.

What the rule means

@schemeID identifies the scheme used to interpret the payee’s legal organization identifier. A scheme code that is not permitted cannot be classified using the designated code list.

Please use an allowed identifier scheme for the payee

The scheme identifier for the payee’s organization identifier does not match the designated code list. You can change the value or leave it empty.

What to do
  1. Check the @schemeID attribute on the payee’s ram:SpecifiedLegalOrganization/ram:ID.
  2. Use a value from the designated code list, or omit the attribute or leave it empty.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedLegalOrganization>
  <ram:ID schemeID="INVALID-CODE">123</ram:ID>
</ram:SpecifiedLegalOrganization>
✓ Correct
<ram:SpecifiedLegalOrganization>
  <ram:ID>123</ram:ID>
</ram:SpecifiedLegalOrganization>
Technical details

The test accepts an empty value or a value from code list cl with ID 16 in FACTUR-X_EN16931_codedb.xml.

Where the rule applies

The rule applies to ram:ID of the payee’s ram:SpecifiedLegalOrganization in the settlement information.

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