Exactly one ID in SpecifiedTaxRegistration

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

SpecifiedTaxRegistration does not contain exactly one ID element. The element is either missing or occurs more than once.

What the rule means

The end user's tax registration is represented by exactly one identifier in this element.

Please provide exactly one ID for the end user's tax registration

SpecifiedTaxRegistration for the end user is missing an ID or contains it more than once. You can adjust the entries so that exactly one ID element is present.

What to do
  1. Find SpecifiedTaxRegistration under ProductEndUserTradeParty.
  2. Ensure that it contains exactly one ID element.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration/>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID>123456789</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The Schematron test counts the direct ram:ID child elements of ram:SpecifiedTaxRegistration and requires exactly one.

Where the rule applies

The rule applies to the end user's SpecifiedTaxRegistration under ProductEndUserTradeParty.

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