Identification scheme for the tax identifier

Error FX-SCH-A-001104 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 of the tax registration is missing the @schemeID attribute. The identification scheme for the tax identifier is therefore not specified.

What the rule means

@schemeID indicates which identification scheme the tax identifier belongs to. This information is required to interpret the identifier in its intended context.

Please specify the identification scheme for the delivery recipient’s tax identifier

The ram:ID element in the delivery recipient’s tax registration is missing @schemeID. You can resolve this by adding the identification scheme to that element.

What to do
  1. Add @schemeID to the ram:ID element inside ram:SpecifiedTaxRegistration.
  2. 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="...">123</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The Schematron check requires @schemeID on ram:ID in the tax registration context.

Where the rule applies

The rule applies to ram:ID inside ram:SpecifiedTaxRegistration of the ram:ShipToTradeParty party on an invoice line.

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