Identification scheme for the buyer agent’s tax identifier

Error FX-SCH-A-000666 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 ram:ID in ram:SpecifiedTaxRegistration.

What the rule means

@schemeID identifies the scheme used to interpret the tax identifier.

Please add the identification scheme for the buyer agent’s tax identifier

The buyer agent’s tax identifier has no @schemeID. Add the missing attribute to specify the identifier’s scheme.

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

The test checks whether the @schemeID attribute is present on the context node.

Where the rule applies

The checked attribute is @schemeID on ram:ID in ram:SpecifiedTaxRegistration of the buyer agent.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:BuyerAgentTradeParty/ram:SpecifiedTaxRegistration/ram:ID
Test expression (assert/@test)
@schemeID