Provide exactly one buyer tax identifier

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

The buyer’s SpecifiedTaxRegistration contains no ID element or more than one ID element. It must contain exactly one ID element.

What the rule means

The ID element contains the tax identifier associated with this buyer tax registration. Having exactly one ensures the registration is stated unambiguously.

Please provide exactly one tax identifier for the buyer

The buyer’s tax registration does not contain exactly one ID element. You can resolve this by adjusting the number of ID elements.

What to do
  1. Open the buyer’s SpecifiedTaxRegistration.
  2. Make sure it contains exactly one ID element.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration/>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID>...</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The test counts the direct ID elements under SpecifiedTaxRegistration and requires the count to equal one.

Where the rule applies

This rule applies to the buyer’s tax registration in the SpecifiedTaxRegistration element.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:BuyerTradeParty/ram:SpecifiedTaxRegistration
Test expression (assert/@test)
count(ram:ID)=1