Tax representative tax registration

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

ram:SpecifiedTaxRegistration is missing from ram:SellerTaxRepresentativeTradeParty or occurs more than once. It must occur exactly once.

What the rule means

The tax registration is part of the seller’s tax representative details. Exactly one registration element keeps this information unambiguous in the XML structure.

Please provide exactly one tax registration for the seller’s tax representative

The seller’s tax representative has no tax registration, or it is included more than once. This can be corrected by having a single ram:SpecifiedTaxRegistration entry.

What to do
  1. Locate ram:SellerTaxRepresentativeTradeParty in the invoice.
  2. Make sure it contains exactly one ram:SpecifiedTaxRegistration.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SellerTaxRepresentativeTradeParty/>
✓ Correct
<ram:SellerTaxRepresentativeTradeParty>
  <ram:SpecifiedTaxRegistration/>
</ram:SellerTaxRepresentativeTradeParty>
Technical details

Within ram:SellerTaxRepresentativeTradeParty, the number of direct ram:SpecifiedTaxRegistration elements is counted and compared with one.

Where the rule applies

The rule applies to the ram:SellerTaxRepresentativeTradeParty entry in the seller section of the invoice.

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