schemeID for the tax registration ID

Error FX-SCH-A-000726 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 SpecifiedTaxRegistration is missing the schemeID attribute.

What the rule means

The schemeID attribute identifies the scheme of the tax registration ID.

Please add schemeID to the end user's tax registration ID

The ID element for the end user's tax registration is missing schemeID. You can add the missing attribute.

What to do
  1. Find the ID element in SpecifiedTaxRegistration under ProductEndUserTradeParty.
  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>123456789</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

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

Where the rule applies

The rule applies to the schemeID attribute of the ID element in the end user's SpecifiedTaxRegistration.

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