Country code is missing from the buyer address

Error BR-11 EN 16931

The Buyer postal address shall contain a Buyer country code (BT-55).

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

The buyer’s postal address contains no ram:CountryID with a non-empty value. The buyer country code (BT-55) is therefore missing.

What the rule means

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

Affected fields BT-55
Please add the country code to the buyer address

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

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

The test requires ram:CountryID under the buyer 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:BuyerTradeParty.

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