Include exactly one tax registration ID for the sales agent

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

ID is missing from SpecifiedTaxRegistration or occurs more than once. Exactly one ID element is required.

What the rule means

ID contains the identifier for the tax registration in this registration entry. Exactly one element ensures that this entry has a single identifier.

Please include the sales agent’s tax registration ID exactly once

The sales agent’s SpecifiedTaxRegistration entry is missing its ID or contains it more than once. This entry must have exactly one ID element.

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

In the context of SpecifiedTaxRegistration, the rule checks that exactly one direct ID element is present.

Where the rule applies

The rule applies to SpecifiedTaxRegistration for the sales agent under SalesAgentTradeParty.

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