Tax representative postal address

Error FX-SCH-A-000432 Factur-X

Element 'ram:PostalTradeAddress' 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:PostalTradeAddress is missing from ram:SellerTaxRepresentativeTradeParty or occurs more than once. It must occur exactly once.

What the rule means

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

Please provide exactly one postal address for the seller’s tax representative

The seller’s tax representative has no postal address, or the address is included more than once. This can be corrected by having a single ram:PostalTradeAddress entry.

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

Within ram:SellerTaxRepresentativeTradeParty, the number of direct ram:PostalTradeAddress 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:PostalTradeAddress)=1