Seller country code is missing from the postal address

Error BR-09 EN 16931

The Seller postal address (BG-5) shall contain a Seller country code (BT-40).

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The seller’s ram:PostalTradeAddress is missing ram:CountryID, or the element has no value. The seller country code (BT-40) is therefore not provided.

What the rule means

BT-40 identifies the country of the seller’s postal address and is part of that address.

Affected fields BG-5 BT-40
Please add the country code to the seller’s postal address

The seller’s postal address is missing a country code. Enter a value in ram:CountryID to complete the information.

What to do
  1. Add a non-empty ram:CountryID inside the seller’s ram:PostalTradeAddress.
  2. Check the value in Party.Country.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:PostalTradeAddress>
  <ram:CountryID/>
</ram:PostalTradeAddress>
✓ Correct
<ram:PostalTradeAddress>
  <ram:CountryID>DE</ram:CountryID>
</ram:PostalTradeAddress>
Check in FactoorSharp
  • Party.Country (SellerTradeParty: BT-40)
Technical details

The XPath test requires a non-empty value in ram:CountryID inside ram:PostalTradeAddress under ram:SellerTradeParty.

Where the rule applies

The rule applies to the seller’s ram:PostalTradeAddress and checks ram:CountryID there.

Context (rule/@context)
/rsm:CrossIndustryInvoice
Test expression (assert/@test)
//ram:SellerTradeParty/ram:PostalTradeAddress/ram:CountryID!=''