Provide exactly one identifier for the VA tax registration

Error FX-SCH-A-001168 Factur-X

Element 'ram:ID' must occur exactly 1 times.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

ram:ID is missing from the relevant ram:SpecifiedTaxRegistration or occurs more than once. This registration must contain exactly one such element.

What the rule means

The rule requires exactly one identifier element for the tax registration using the VA scheme.

Please provide exactly one identifier for the manufacturer's `VA` tax registration

The product manufacturer's tax registration using the VA scheme is missing its identifier or contains it more than once. You can make the entry consist of exactly one ram:ID element.

What to do
  1. Locate the manufacturer's tax registration with ram:ID and schemeID="VA".
  2. Make sure this registration contains exactly one ram:ID element.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration>
  <ram:ID schemeID="VA">123</ram:ID>
  <ram:ID schemeID="VA">456</ram:ID>
</ram:SpecifiedTaxRegistration>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID schemeID="VA">123</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

For ram:SpecifiedTaxRegistration whose ram:ID/@schemeID equals VA, the number of direct ram:ID elements is checked to be exactly one.

Where the rule applies

The rule applies to the product manufacturer's ram:SpecifiedTaxRegistration when ram:ID has the schemeID value VA.

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