Identification scheme for the tax registration identifier

Error FX-SCH-A-000426 Factur-X

Attribute '@schemeID' is required in this context.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The required @schemeID attribute is missing from the tax registration’s ram:ID.

What the rule means

@schemeID identifies the scheme used for the tax registration identifier. The rule requires this attribute on ram:ID.

Please add the identification scheme for the tax registration identifier

@schemeID is missing from ram:ID in the buyer’s tax registration. Add this attribute so the identifier specifies its scheme.

What to do
  1. Check ram:ID in the buyer’s ram:SpecifiedTaxRegistration.
  2. Add the @schemeID attribute to ram:ID.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration>
  <ram:ID>12345</ram:ID>
</ram:SpecifiedTaxRegistration>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID schemeID="value">12345</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The XPath checks whether the @schemeID attribute is present on the current ram:ID.

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)
@schemeID