Country code required in the buyer’s postal 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 ram:CountryID element in the buyer’s postal address is missing or has no value.

What the rule means

The country code identifies the country in which the buyer’s postal address is located.

Affected fields BT-55
Please enter the country code in the buyer’s postal address

The buyer’s postal address does not contain a country code with a value. Add the value in ram:CountryID.

What to do
  1. Review the value of Party.Country for BuyerTradeParty.
  2. Make sure ram:CountryID in ram:PostalTradeAddress has a non-empty value.
  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>DE</ram:CountryID>
  </ram:PostalTradeAddress>
</ram:BuyerTradeParty>
Check in FactoorSharp
  • Party.Country (BuyerTradeParty: BT-55)
Technical details

The test requires a ram:CountryID inside ram:BuyerTradeParty/ram:PostalTradeAddress whose string value is not empty.

Where the rule applies

The rule applies to ram:PostalTradeAddress inside the ram:BuyerTradeParty party.

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