Provide schemeID for the VA identifier

Error FX-SCH-A-001055 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 in the VA tax registration.

What the rule means

schemeID identifies the scheme of the tax registration identifier. The attribute must be present in this context.

Please add `schemeID` to the item seller’s VA identifier

The schemeID attribute is missing from ram:ID in the item seller’s VA tax registration. You can add the attribute to that element.

What to do
  1. Find ram:ID in the VA ram:SpecifiedTaxRegistration of the ram:ItemSellerTradeParty.
  2. Add the schemeID attribute to that ram:ID element.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration>
  <ram:ID>A</ram:ID>
</ram:SpecifiedTaxRegistration>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID schemeID="VA">A</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

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

Where the rule applies

The rule applies to ram:ID inside the item seller’s VA tax registration.

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