Exactly one identifier for the seller’s VAT identifier

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

In this tax registration, ram:ID does not occur exactly once. The element is missing or occurs more than once.

What the rule means

The tax registration with schemeID="VA" must contain exactly one associated identifier so that the VAT identifier has an unambiguous structure.

Please provide exactly one VAT identifier for the seller’s `VA` tax registration

The seller’s VA tax registration is missing ram:ID, or the element occurs more than once. You can correct the count so that exactly one element is present.

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

The XPath condition checks whether the number of direct ram:ID child elements is exactly one.

Where the rule applies

The rule applies to 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"]
Test expression (assert/@test)
count(ram:ID)=1