Tax registration required for the tax representative

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

BuyerTaxRepresentativeTradeParty does not contain exactly one ram:SpecifiedTaxRegistration element. The element is missing or occurs more than once.

What the rule means

The tax registration is a required part of the tax representative’s information.

Please provide exactly one tax registration for the tax representative

The tax representative’s information is missing ram:SpecifiedTaxRegistration, or the element is present more than once. You can correct the invoice by including exactly one such element.

What to do
  1. Find BuyerTaxRepresentativeTradeParty in the invoice.
  2. Make sure it contains exactly one ram:SpecifiedTaxRegistration element.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:BuyerTaxRepresentativeTradeParty/>
✓ Correct
<ram:BuyerTaxRepresentativeTradeParty>
  <ram:SpecifiedTaxRegistration/>
</ram:BuyerTaxRepresentativeTradeParty>
Technical details

The rule counts the direct child elements ram:SpecifiedTaxRegistration and requires exactly one.

Where the rule applies

Within BuyerTaxRepresentativeTradeParty, the rule applies to the tax registration.

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