Include the scheme identifier on the tax registration ID

Error FX-SCH-A-000751 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 ID element in the tax registration is missing the schemeID attribute.

What the rule means

schemeID identifies the scheme of the tax registration ID. Without this attribute, the scheme information required in this context is missing.

Please add the scheme identifier to the tax registration ID

The scheme information is missing from the sales agent’s tax registration ID. Add the schemeID attribute to the ID element.

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

The rule checks whether the schemeID attribute is present on the contextual ID element; it does not check a specific attribute value.

Where the rule applies

The rule applies to the schemeID attribute of ID in the sales agent’s SpecifiedTaxRegistration.

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