Provide schemeID on ram:ID

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 the ram:ID element.

What the rule means

schemeID identifies the scheme of the identifier in this tax registration.

Please add `schemeID` to the tax representative’s identifier

The ram:ID element in ram:SpecifiedTaxRegistration is missing schemeID. You can add the attribute to state the identifier scheme.

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

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

Where the rule applies

The rule applies to the ram:ID element in the buyer’s tax representative’s ram:SpecifiedTaxRegistration.

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