Provide exactly one tax identifier 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

ram:ID is missing from ram:SpecifiedTaxRegistration or occurs more than once. The element must occur exactly once.

What the rule means

The sales agent’s tax registration is represented by exactly one identifier in ram:ID.

Please provide exactly one tax identifier for the sales agent

The sales agent’s tax registration is missing an identifier or has it entered more than once. You can correct the invoice by having exactly one ram:ID element in this location.

What to do
  1. Find the sales agent’s ram:SpecifiedTaxRegistration element.
  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/>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID>123456789</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The test counts the direct ram:ID elements in ram:SpecifiedTaxRegistration and requires exactly one.

Where the rule applies

The rule applies to the sales agent’s ram:SpecifiedTaxRegistration in the seller section.

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