# UBL-CR-290: Remove AgentParty from the payee party

Warning: EN 16931 has no place for `cac:AgentParty` in the payee party. The document stays valid; remove it.

- Layer: EN 16931
- Severity: warning (the document stays valid)
- Topics: Parties and addresses
- Official definition: https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-tc434/UBL-CR-290/
- Explanation last updated: 2026-09-29

## The short answer

`UBL-CR-290` is a warning raised when `cac:AgentParty` appears in the payee party (`cac:PayeeParty`). EN 16931 has no business term for it, so remove the element and everything inside it.

The warning on its own does not make the document invalid, though other rules still check what is there. Removing the element keeps the XML inside the EN 16931 model, which is what a receiver maps the invoice from.

## What the rule checks

The rule checks one thing: whether `cac:PayeeParty/cac:AgentParty` exists. What it contains is not read.

It runs once against the whole document, so it is reported once however many times the document has the element, and the finding points at the document root rather than at the element: look for `cac:PayeeParty/cac:AgentParty` in the XML.

Everything inside `cac:AgentParty` goes with it; no other UBL-CR rule names a position inside it.

| Term | Meaning | UBL element |
|---|---|---|
| - | AgentParty (UBL only, no business term) | `cac:PayeeParty/cac:AgentParty` |
| BG-10 | Payee party | `cac:PayeeParty` |

## How an integration ends up here

Possible causes, from the shape of the rule rather than from measured usage:

- A whole `cac:AgentParty` structure is copied from a master record or another document type, including parts EN 16931 does not use.
- A general UBL 2.1 library writes every element and attribute it has a value for, whether or not EN 16931 uses it.
- A mapping built for another UBL-based document, such as an order, a despatch advice or a national profile, is reused for Peppol BIS Billing.

## How to fix it

1. Stop writing `cac:PayeeParty/cac:AgentParty`, with everything inside it.
2. If you need the information, keep it in your own records: EN 16931 has no business term for it, so a receiver has no agreed place to read it from.
3. Validate again: the warning goes. If the element was the only thing in its parent, remove the parent too: Peppol refuses empty elements (PEPPOL-EN16931-R008).

## Before and after

These are fragments, not complete documents. The complete synthetic documents they come from are linked below.

Fragment of the invoice with the warning: AgentParty in the payee party

```xml
<cac:PayeeParty>
  <cac:PartyIdentification>
    <cbc:ID>PAYEE-001</cbc:ID>
  </cac:PartyIdentification>
  <cac:PartyName>
    <cbc:Name>Example Payee Ltd</cbc:Name>
  </cac:PartyName>
  <cac:PartyLegalEntity>
    <cbc:CompanyID>11223344</cbc:CompanyID>
  </cac:PartyLegalEntity>
  <cac:AgentParty>
    <cbc:MarkCareIndicator>true</cbc:MarkCareIndicator>
  </cac:AgentParty>
</cac:PayeeParty>
```

Fragment of the corrected invoice: the same lines without it

```xml
<cac:PayeeParty>
  <cac:PartyIdentification>
    <cbc:ID>PAYEE-001</cbc:ID>
  </cac:PartyIdentification>
  <cac:PartyName>
    <cbc:Name>Example Payee Ltd</cbc:Name>
  </cac:PartyName>
  <cac:PartyLegalEntity>
    <cbc:CompanyID>11223344</cbc:CompanyID>
  </cac:PartyLegalEntity>
</cac:PayeeParty>
```

The invoice with the warning has `<cac:AgentParty>` in the payee party, and the corrected invoice is the same document without it. It reports only this warning and is valid on every layer, so it would be accepted as it stands.

### What the validator reported

- The invoice with the warning is valid, and reports the warning **UBL-CR-290**. The corrected document passes every layer with no findings.
  - [Download the XML with the warning](https://ironfang.com/finance/rule-examples/UBL-CR-290-warning.xml)
  - [Download the corrected XML](https://ironfang.com/finance/rule-examples/syntax-invoice-complete.xml)

Recorded on phive 12.1.0 / phive-rules-peppol 4.5.6 / Saxon-HE 12.10, the engine behind the free validator, using synthetic data. A recorded result is regression evidence for these documents; it is not a certification.

## Where it applies

- Applies to UBL `Invoice` and `CreditNote` alike; the recorded example is an invoice.
- The warning comes from the EN 16931 layer's rules for the UBL syntax. In the recorded example the schema layer passes: the element is valid UBL 2.1 and is only outside the EN 16931 model.

## Related rules

- [UBL-CR-288: Contact in the payee party](https://ironfang.com/docs/finance/rules/UBL-CR-288.md)
- [UBL-CR-289: Person in the payee party](https://ironfang.com/docs/finance/rules/UBL-CR-289.md)
- [UBL-CR-291: ServiceProviderParty in the payee party](https://ironfang.com/docs/finance/rules/UBL-CR-291.md)

## Scope and source

Written for Peppol BIS Billing 3.0.21 (May 2026), EN 16931 1.3.16, as applied to UBL 2.1 Invoice and CreditNote documents. Other profiles, syntaxes and releases can define this identifier differently. Guidance version 2026-09-29.1: source checked 2026-09-29, explanation last updated 2026-09-29.

[The official definition of UBL-CR-290](https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-tc434/UBL-CR-290/) carries the normative wording and test. This page is our explanation of it, not a copy.

Guidance does not change the engine verdict. Fixing this finding does not mean the document passes every layer, and validation does not certify legal or tax compliance or transmit a document over Peppol.

## Links

- [This rule as a web page](https://ironfang.com/docs/finance/rules/UBL-CR-290)
- [Free Peppol invoice validator](https://ironfang.com/tools/peppol-validator)
- [Rule index](https://ironfang.com/docs/finance/rules.md)
- [Ironfang Finance API docs](https://ironfang.com/docs/finance)
- The same rule is available to MCP clients as the tool `finance.rule.get` on https://mcp.ironfang.com/mcp
