Exactly one postal address for the seller

Error FX-SCH-A-000032 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 SellerTradeParty or occurs more than once. It must occur exactly once.

What the rule means

ram:PostalTradeAddress contains the seller’s postal address. The rule requires exactly one such address in the seller details.

Please provide exactly one postal address for the seller

The seller details are missing a postal address or contain more than one. Make sure SellerTradeParty contains exactly one ram:PostalTradeAddress.

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

The rule counts the direct ram:PostalTradeAddress elements in SellerTradeParty and requires a count of 1.

Where the rule applies

The rule applies to SellerTradeParty in the seller details.

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