VAT identifier scheme required

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 relevant ram:ID has no schemeID attribute. The rule checks this attribute on the seller's VAT identifier registration.

What the rule means

The scheme identifies the type of seller identifier. In this context, VA identifies the VAT identifier.

Please add the scheme identifier for the seller’s VAT identifier

The seller’s VAT identifier registration is missing the scheme identifier on ram:ID. Adding the attribute can resolve this issue.

What to do
  1. Add the schemeID attribute to the relevant ram:ID.
  2. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:ID>...</ram:ID>
✓ Correct
<ram:ID schemeID="">...</ram:ID>
Technical details

The test checks whether the schemeID attribute is present on the ram:ID selected by the context.

Where the rule applies

The rule applies to ram:ID within the seller's ram:SpecifiedTaxRegistration when the registration is identified by 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