Country code is missing from the seller 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 postal address contains no ram:CountryID with a non-empty value. The seller country code (BT-40) is therefore missing.

What the rule means

The country code indicates which country the seller’s postal address belongs to.

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

The country code is missing from the seller’s postal address. Add it to the seller address.

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

The test requires ram:CountryID under the seller postal address to contain a value other than the empty string.

Where the rule applies

The rule applies to ram:CountryID inside the ram:PostalTradeAddress of ram:SellerTradeParty.

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