Required schemeID attribute for ID

Error FX-SCH-A-000882 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 schemeID attribute is missing from the ID element. The attribute is required in this context.

What the rule means

The rule requires the tax registration identifier to have a schemeID attribute.

Please add `schemeID` to the invoicee’s tax registration identifier

The ID element in the invoicee’s tax registration is missing the schemeID attribute. Add the attribute so the identifier is provided with its required attribute.

What to do
  1. Find ID in the invoicee’s tax registration.
  2. Add the schemeID attribute to the ID element.
  3. Generate the invoice again 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="...">12345</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The test checks only whether the schemeID attribute is present on the ID element.

Where the rule applies

The rule applies to ID in the invoicee’s tax registration.

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