Scheme required for the ship-from party’s tax identifier

Error FX-SCH-A-000811 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 in ram:SpecifiedTaxRegistration is missing the @schemeID attribute.

What the rule means

The scheme identifies the system used to interpret the tax identifier. Without this attribute, the required classification of the identifier is missing.

Please add the scheme for the ship-from party’s tax identifier

@schemeID is missing from ram:ID in the ship-from party’s tax registration. Add the attribute so the identifier includes the required scheme.

What to do
  1. Locate ram:ID in ram:SpecifiedTaxRegistration for the ship-from party.
  2. Add the @schemeID attribute to ram:ID.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration>
  <ram:ID>12345</ram:ID>
</ram:SpecifiedTaxRegistration>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID schemeID="...">12345</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The rule checks for the presence of the @schemeID attribute on the current ram:ID element; its value is not checked here.

Where the rule applies

This rule applies to the @schemeID attribute of ram:ID in ram:SpecifiedTaxRegistration for the ship-from party (ram:ShipFromTradeParty).

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