Tax representative tax registration required

Error FX-SCH-A-000169 Factur-X

Element 'ram:SpecifiedTaxRegistration' 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 ram:SellerTaxRepresentativeTradeParty element does not contain exactly one ram:SpecifiedTaxRegistration element. The tax registration must be present once.

What the rule means

The rule requires a tax registration entry for the tax representative. This test specifies that the element occurs exactly once.

Please add the tax representative's tax registration

The tax representative's required tax registration is missing or has been provided more than once. Exactly one ram:SpecifiedTaxRegistration element must appear in this part of the invoice.

What to do
  1. Locate ram:SellerTaxRepresentativeTradeParty in the invoice.
  2. Add exactly one ram:SpecifiedTaxRegistration element or remove any extra elements.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:SellerTaxRepresentativeTradeParty/>
✓ Correct
<ram:SellerTaxRepresentativeTradeParty>
  <ram:SpecifiedTaxRegistration/>
</ram:SellerTaxRepresentativeTradeParty>
Technical details

The test counts ram:SpecifiedTaxRegistration elements directly under ram:SellerTaxRepresentativeTradeParty and requires exactly one.

Where the rule applies

The rule applies to ram:SpecifiedTaxRegistration within ram:SellerTaxRepresentativeTradeParty.

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