Provide a name or code for the item attribute

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 item attribute contains neither a name in ram:Description nor a code in ram:TypeCode. At least one of these elements must be present.

What the rule means

A name or code identifies which attribute of the item is being described. This makes the item attribute identifiable.

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

An item attribute is missing both a name and a code. Add at least one of these details.

What to do
  1. For ram:ApplicableProductCharacteristic, provide a name in Description or a code in TypeCode.
  2. If you use the model, check the ApplicableProductCharacteristic.Description property.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:ApplicableProductCharacteristic/>
✓ Correct
<ram:ApplicableProductCharacteristic>
  <ram:Description>Farbe</ram:Description>
</ram:ApplicableProductCharacteristic>
Check in FactoorSharp
  • ApplicableProductCharacteristic.Description (BT-160)
  • TradeLineItem.ApplicableProductCharacteristics (BG-32)
Technical details

The test uses exists to check whether ram:Description or ram:TypeCode is present under ram:ApplicableProductCharacteristic.

Where the rule applies

This rule applies to each item attribute ram:ApplicableProductCharacteristic of an invoice line.

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