# BR-17 Payee name is required when a payee is present

The Payee name (BT-59) shall be provided when the Payee (BG-10) differs from the Seller (BG-4).

## Problem Description

> **ERROR**: EN 16931 core business rule (CEN)

## Context and Significance

This is a conditional EN 16931 core rule. When payment goes to a party other than the seller, for example a factoring company, that payee must be named so the buyer pays the right party. The error often appears when an export creates cac:PayeeParty with only an identifier or bank data. In CII, BT-59 is ram:PayeeTradeParty/ram:Name.

## Solution

When a cac:PayeeParty group is present, add cac:PayeeParty/cac:PartyName/cbc:Name with the payee’s name.

- [Validate XML](/en/xrechnung-validator?source=resource&rule=BR-17)
- [Convert invoice](/en/pdf-to-xrechnung?source=resource&rule=BR-17)

## Valid Examples

- cac:PayeeParty present with BT-59 = Factoring Partner GmbH

## Invalid Examples

- cac:PayeeParty is present but has no cac:PartyName/cbc:Name

## Code Examples

### Valid XML
```
<cac:PayeeParty>
  <cac:PartyName>
    <cbc:Name>Factoring Partner GmbH</cbc:Name>
  </cac:PartyName>
</cac:PayeeParty>
```

### Invalid XML
```
<cac:PayeeParty>
  <cac:PartyIdentification>
    <cbc:ID>PAYEE-1</cbc:ID>
  </cac:PartyIdentification>
</cac:PayeeParty>
```

## Affected Fields

- [BT-59 Payee name](/resources/xrechnung/bt-59-payee-name)
- [BG-10 Payee](/resources/xrechnung/bt-59-payee-name)

## Related Rules

- [BR-06](/resources/kosit-validator-errors/br-06-seller-name-required)

## Validation Tools

- [Official KoSIT Validator](https://github.com/itplr-kosit/validator): Run the official KoSIT validator with the XRechnung configuration to check EN 16931 and XRechnung rules.
- [Convert PDF to XRechnung](/pdf-to-xrechnung): Find validation errors during conversion and review each correction.

## Related Resources

- [Official Specification](https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-tc434/)
- [Test Suite](https://github.com/itplr-kosit/xrechnung-testsuite)
- [All validation errors](/resources/kosit-validator-errors): Overview of the EN 16931, XRechnung and Peppol validation rules explained here.
