Permitted scheme for the buyer’s tax identifier

Error FX-SCH-A-000570 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 included in the designated code list. The check permits an empty value or a value listed there.

What the rule means

schemeID identifies the scheme of the buyer’s tax registration identifier. A permitted value allows that identifier to be classified unambiguously.

Please use a permitted scheme for the buyer’s tax identifier

The scheme for the buyer’s tax registration identifier is not included in the designated code list. You can leave the value empty or use a value permitted in that list.

What to do
  1. Check ram:ID within the buyer’s ram:SpecifiedTaxRegistration.
  2. Check the schemeID value against its code list; the value may also be empty.
  3. Generate the invoice again and validate it once more.
Technical details

The test passes if the checked value is empty or appears as an @value in the enumeration of code list ID 18.

Where the rule applies

The rule applies to the schemeID attribute of ram:ID within the buyer’s ram:SpecifiedTaxRegistration.

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