Scheme identifier for the tax 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 ram:ID element is missing the schemeID attribute in the context of the invoice issuer’s tax registration.

What the rule means

The schemeID attribute identifies the scheme of the tax identifier and is part of the tax registration in this context.

Please add the scheme identifier to the invoice issuer’s tax identifier

No scheme is specified for the invoice issuer’s tax identifier. Add the missing attribute to complete the entry.

What to do
  1. Find ram:ID in the tax registration of InvoicerTradeParty.
  2. Add the schemeID attribute to that element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration>
  <ram:ID>123</ram:ID>
</ram:SpecifiedTaxRegistration>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID schemeID="scheme">123</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The rule checks whether the schemeID attribute is present on ram:ID.

Where the rule applies

This rule applies to the schemeID attribute of ram:ID in the invoice issuer’s tax registration.

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