# 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

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

> **ERROR**: XRechnung 3.0

## Context and Significance

This rule comes from the EN16931 core semantic model enforced by the KoSIT XRechnung 3.0.2 Schematron, ensuring invoices carry the mandatory data needed for automated processing.

## Solution

Provide both cac:AdditionalItemProperty/cbc:Name and cbc:Value for every item property.

- validate
- convert

## 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-classification-identifier-scheme)
- [BT-161 Item attribute value](/resources/xrechnung/bt-161-item-country-of-origin)

## 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://erechnungsvalidator.service-bw.de/): Validate your XRechnung files against all BR-DE rules.
- [Convert PDF to XRechnung](/pdf-to-xrechnung): Automatic validation error fixes when converting.

## Related Resources

- [Official Specification](https://xeinkauf.de/xrechnung/)
- [Test Suite](https://github.com/itplr-kosit/xrechnung-testsuite)
- [Complete Error List](/resources/kosit-validator-errors): Overview of all German XRechnung validation rules.
