Provide the seller’s postal address

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

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

What the rule means

The postal address is a required part of the seller details.

Please provide the seller’s postal address exactly once

The postal address is missing from the seller details or is included more than once. You can resolve this by providing exactly one ram:PostalTradeAddress.

What to do
  1. Check the ram:PostalTradeAddress elements inside ram:SellerTradeParty.
  2. Make sure that exactly one ram:PostalTradeAddress is present there.
  3. Generate the invoice again and validate it.
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 under ram:SellerTradeParty and requires exactly one.

Where the rule applies

Within ram:SellerTradeParty, which contains the seller’s details.

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