Include the identification scheme for the tax registration identifier

Error FX-SCH-A-000690 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 schemeID attribute is missing from ram:ID. This attribute must be present in this context.

What the rule means

schemeID indicates which identification scheme applies to the tax registration identifier. Without this attribute, the identifier’s scheme is not specified.

Please add the identification scheme for the tax registration identifier

The schemeID attribute is missing from ram:ID in the buyer’s tax representative’s tax registration. Add this attribute to complete the identification of the tax registration identifier.

What to do
  1. Locate ram:ID in ram:SpecifiedTaxRegistration for the buyer’s tax representative.
  2. Add the schemeID attribute to ram:ID.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration>
  <ram:ID>123456</ram:ID>
</ram:SpecifiedTaxRegistration>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID schemeID="SCHEME">123456</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The XPath test checks whether the schemeID attribute is present on the context node ram:ID.

Where the rule applies

The rule applies to the schemeID attribute of ram:ID in ram:SpecifiedTaxRegistration for the buyer’s tax representative.

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