The tax registration identifier scheme must be specified

Error FX-SCH-A-001122 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 identifier. Without this attribute, the classification required by the rule is missing.

Please specify the scheme of the tax registration identifier

The tax registration identifier for the ultimate ship-to party is missing the schemeID attribute. Add this attribute so the required information is present.

What to do
  1. Open ID in the ultimate ship-to party’s SpecifiedTaxRegistration.
  2. Add the missing schemeID attribute.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:ID/>
✓ Correct
<ram:ID schemeID=""/>
Technical details

The test checks whether the @schemeID attribute is present on the ram:ID element.

Where the rule applies

The rule applies to the schemeID attribute of ID in SpecifiedTaxRegistration for an invoice line’s ultimate ship-to party.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeDelivery/ram:UltimateShipToTradeParty/ram:SpecifiedTaxRegistration/ ram:ID
Test expression (assert/@test)
@schemeID