Invalid tax registration scheme identifier

Error FX-SCH-A-000500 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 schemeID attribute of ID contains a value that is not included in the applicable code list. This check also accepts an empty value.

What the rule means

The scheme identifies the type of tax registration to which ID belongs. A value that is not permitted can prevent the tax registration from being classified unambiguously.

Please provide an allowed scheme identifier for the tax representative’s tax registration

The scheme identifier for the tax representative’s tax registration is not included in the applicable code list. You can adjust the value using the code list that applies to ID.

What to do
  1. Check the schemeID attribute of ID in SpecifiedTaxRegistration of SellerTaxRepresentativeTradeParty.
  2. Compare the entered value with the code list for this attribute.
  3. Generate the invoice again and validate it once more.
Technical details

A non-empty value of SpecifiedTaxRegistration/ID/@schemeID is checked against the entries in code list 16 in FACTUR-X_BASIC_codedb.xml.

Where the rule applies

The rule applies to the seller’s tax representative’s tax registration, specifically to the schemeID attribute of ID in SpecifiedTaxRegistration.

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