Use an allowed schemeID value for the buyer tax identifier

Error FX-SCH-A-000427 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 schemeID value is not included in the value list used by this rule. The test also accepts an empty value.

What the rule means

The value list restricts the scheme designation to the values provided for this tax registration. An empty value is also permitted by the test.

Please use an allowed schemeID value for the buyer tax identifier

The supplied schemeID value is not included in the value list allowed by this rule. You can compare the value with that list or leave the attribute empty.

What to do
  1. Check the value of schemeID on the ID element in the buyer’s tax registration.
  2. Use a value from the code list allowed by this rule, or leave the value empty.
  3. Generate the invoice again and validate it once more.
What it looks like
✓ Correct
<ram:ID schemeID=""/>
Good to know

An empty value is accepted by the test; a non-empty value must be included in the code list with ID 9.

Technical details

The test accepts an empty value or a value listed in the code list with ID 9.

Where the rule applies

This rule applies to the value of the schemeID attribute on the ID element in the buyer’s tax registration.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID
Test expression (assert/@test)
string-length($codeValue9)=0 or document('FACTUR-X_BASIC-WL_codedb.xml')/codedb/cl[@id=9]/enumeration[@value=$codeValue9]