schemeID for the seller’s VAT identifier

Error FX-SCH-A-000413 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

The schemeID attribute identifies the scheme of the tax identifier. Without this attribute, the VAT identifier is not fully designated in this context.

Please add `schemeID` to the seller’s VAT identifier

The ram:ID in the seller’s VA tax registration is missing the schemeID attribute. Add the attribute to complete the information.

What to do
  1. Locate ram:ID in the seller’s tax registration with schemeID="VA".
  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>123</ram:ID>
</ram:SpecifiedTaxRegistration>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID schemeID="VA">123</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The XPath condition checks whether the schemeID attribute is present on the ram:ID element.

Where the rule applies

The rule applies to ram:ID inside the seller’s ram:SpecifiedTaxRegistration with schemeID="VA".

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:SellerTradeParty/ram:SpecifiedTaxRegistration[ram:ID/@schemeID="VA"]/ ram:ID
Test expression (assert/@test)
@schemeID