# BR-54 Item attribute must have both a name and a value

Each Item attribute (BG-32) shall contain an Item attribute name (BT-160) and an Item attribute value (BT-161).

## Problem Description

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

## Context and Significance

This is an EN 16931 core rule. Item attributes (BG-32) such as colour, size or batch number are only usable as name/value pairs. In UBL, cbc:Name is already required by the schema, so BR-54 usually appears for an attribute without cbc:Value, for example when an export writes every attribute of the product template even if it is not filled for this item.

## Solution

Provide both cac:AdditionalItemProperty/cbc:Name and cbc:Value for every item attribute (CII: ram:ApplicableProductCharacteristic with ram:Description for the name and ram:Value). If an attribute has no value for this item, leave the whole attribute out.

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

## Valid Examples

- BT-160 = "Colour", BT-161 = "Blue"

## Invalid Examples

- Item property with a Name but no Value (BT-161 missing)

## Code Examples

### Valid XML
```
<cac:AdditionalItemProperty>
  <cbc:Name>Colour</cbc:Name>
  <cbc:Value>Blue</cbc:Value>
</cac:AdditionalItemProperty>
```

### Invalid XML
```
<cac:AdditionalItemProperty>
  <cbc:Name>Colour</cbc:Name>
</cac:AdditionalItemProperty>
```

## Affected Fields

- [BT-160 Item attribute name](/resources/xrechnung/bt-160-item-attribute-name)
- [BT-161 Item attribute value](/resources/xrechnung/bt-161-item-attribute-value)

## Related Rules

- [BR-64](/resources/kosit-validator-errors/br-64-item-standard-identifier-scheme-required)
- [BR-65](/resources/kosit-validator-errors/br-65-item-classification-identifier-scheme-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.
