Required identifier on the tax ID element

Error FX-SCH-A-000849 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 does not contain a schemeID attribute. The attribute is required in this context.

What the rule means

The schemeID attribute identifies the scheme used for the tax registration and thus indicates the type of identifier.

Please add the identifier scheme to the tax ID element

The ram:ID for the ultimate ship-to party’s tax registration is missing the schemeID identifier. You can resolve this by adding the attribute to this element.

What to do
  1. Locate the tax registration under ram:UltimateShipToTradeParty.
  2. Add the schemeID attribute to the ram:ID element it contains.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:ID>...</ram:ID>
✓ Correct
<ram:ID schemeID="...">...</ram:ID>
Technical details

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

Where the rule applies

The rule applies to ram:ID within the tax registration of the ultimate ship-to party (ram:UltimateShipToTradeParty).

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