Invalid identification scheme for the buyer’s tax registration

Error FX-SCH-A-000703 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 ram:ID contains a value that is not included in the applicable code list.

What the rule means

The identification scheme describes the system used to interpret the tax registration identifier. An unallowed scheme value can prevent that identifier from being classified correctly.

Please use an allowed identification scheme for the buyer’s tax registration

An unallowed identification scheme is specified for the buyer’s tax registration. You can resolve the issue by aligning the checked scheme value with the permitted code list.

What to do
  1. Locate ram:SpecifiedTaxRegistration in the buyer details.
  2. Check the value of @schemeID on ram:ID against the applicable code list.
  3. Change the scheme value to an allowed value, or leave it empty if no value is to be supplied.
  4. Generate the invoice again and validate it again.
Technical details

The test permits an empty checked value; otherwise, it must be present in code list ID 34.

Where the rule applies

The rule applies to ram:ID of the tax registration within the buyer party.

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