Exactly one payer tax identifier

Error FX-SCH-A-000944 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 does not occur exactly once in SpecifiedTaxRegistration of PayerTradeParty. The element is either missing or repeated.

What the rule means

ram:ID contains the tax identifier associated with this payer tax registration. Exactly one value is required to identify the registration unambiguously.

Please provide exactly one tax identifier for the payer

The payer’s tax registration does not contain exactly one ram:ID element. You can correct this by providing exactly one tax identifier there.

What to do
  1. Locate SpecifiedTaxRegistration within PayerTradeParty.
  2. Check whether ram:ID is missing or occurs more than once.
  3. Ensure that exactly one ram:ID element is present.
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration>
  <ram:ID>123</ram:ID>
  <ram:ID>456</ram:ID>
</ram:SpecifiedTaxRegistration>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID>123</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The rule counts the direct ram:ID elements in the current SpecifiedTaxRegistration and requires the count to be exactly one.

Where the rule applies

The rule applies to SpecifiedTaxRegistration within PayerTradeParty in the invoice settlement information.

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