Tax-registration scheme identifier required

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 ram:ID element is missing the schemeID attribute. This attribute is required in this context.

What the rule means

The scheme identifier associates the tax-registration identifier with an identification scheme.

Please add the scheme identifier to the buyer agent’s tax registration

The ram:ID element in the buyer agent’s tax registration is missing the schemeID attribute. You can add the identifier to this element.

What to do
  1. Find ram:ID in ram:SpecifiedTaxRegistration under ram:BuyerAgentTradeParty.
  2. Add the required schemeID attribute to ram:ID.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration>
  <ram:ID>12345</ram:ID>
</ram:SpecifiedTaxRegistration>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID schemeID="…">12345</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The test checks for the presence of the @schemeID attribute on ram:ID.

Where the rule applies

Applies to the schemeID attribute of ram:ID in the buyer agent’s ram:SpecifiedTaxRegistration.

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