schemeID for the tax registration identifier

Error FX-SCH-A-000904 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 ram:ID element within ram:SpecifiedTaxRegistration.

What the rule means

The schemeID attribute identifies the scheme of the tax registration identifier. Without this attribute, the identifier scheme is not specified.

Please add `schemeID` to the tax registration identifier

No schemeID attribute is provided on the tax registration’s ram:ID. You can add this attribute to the identifier.

What to do
  1. Locate ram:ID within ram:SpecifiedTaxRegistration of ram:InvoicerTradeParty.
  2. Add the schemeID attribute to that ram:ID.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration>
  <ram:ID>123</ram:ID>
</ram:SpecifiedTaxRegistration>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID schemeID="value">123</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

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

Where the rule applies

The rule applies to the schemeID attribute of ram:ID within ram:SpecifiedTaxRegistration of ram:InvoicerTradeParty.

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