Tax registration of the buyer’s 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

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

What the rule means

The tax registration detail of the tax representative must be present exactly once in this XML context.

Please include exactly one tax registration for the buyer’s tax representative

The tax registration for the buyer’s tax representative is either missing or entered more than once. The invoice must contain exactly one ram:SpecifiedTaxRegistration element.

What to do
  1. Find BuyerTaxRepresentativeTradeParty in the invoice.
  2. Check how many times ram:SpecifiedTaxRegistration occurs there.
  3. Add or remove entries so that the element is present exactly once.
  4. 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 test counts the direct ram:SpecifiedTaxRegistration elements in BuyerTaxRepresentativeTradeParty and requires exactly one.

Where the rule applies

The rule applies to the buyer’s tax representative details in BuyerTaxRepresentativeTradeParty.

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