Provide an attribute name or attribute code

Error BR-FXEXT-BR-54-1 Factur-X

Each Item attribute (BG-32) shall contain an Item attribute name (BT-160) or an Item attribute code (BT-X-11), or both.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The ApplicableProductCharacteristic contains neither Description nor TypeCode. Both the item attribute name and code are missing.

What the rule means

An item attribute must be identifiable by a name, a code, or both.

Affected fields BG-32 BT-160 BT-X-11
Please provide a name or code for the item attribute

An item attribute is missing both its name and its code. Either detail is enough to identify the attribute.

What to do
  1. Add a description in Description or a code in TypeCode for the item attribute.
  2. Check ApplicableProductCharacteristic.Description.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:ApplicableProductCharacteristic/>
✓ Correct
<ram:ApplicableProductCharacteristic>
  <ram:Description>Colour</ram:Description>
</ram:ApplicableProductCharacteristic>
Check in FactoorSharp
  • ApplicableProductCharacteristic.Description (BT-160)
  • TradeLineItem.ApplicableProductCharacteristics (BG-32)
Technical details

The test requires Description or TypeCode to exist; both elements may also be present.

Where the rule applies

The rule applies to each ApplicableProductCharacteristic, an item attribute within the invoice line.

Context (rule/@context)
//ram:ApplicableProductCharacteristic
Test expression (assert/@test)
exists(ram:Description) or exists(ram:TypeCode)