Invoice line identifier

Error BR-21 EN 16931

Each Invoice line (BG-25) shall have an Invoice line identifier (BT-126).

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

The invoice line has no non-empty LineID. Every invoice line must have an identifier.

What the rule means

The identifier makes it possible to refer to an individual invoice line within the invoice.

Affected fields BG-25 BT-126
Please provide an identifier for the invoice line

An invoice line is missing its LineID identifier, or the identifier is empty. Provide an identifier for this line.

What to do
  1. Provide a non-empty identifier using AssociatedDocument.LineID.
  2. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:AssociatedDocumentLineDocument>
  <ram:LineID/>
</ram:AssociatedDocumentLineDocument>
✓ Correct
<ram:AssociatedDocumentLineDocument>
  <ram:LineID>1</ram:LineID>
</ram:AssociatedDocumentLineDocument>
Check in FactoorSharp
  • AssociatedDocument.LineID (BT-126)
  • TradeLineItem.AssociatedDocument (BT-126)
Technical details

The test requires AssociatedDocumentLineDocument/LineID to be present and not equal to an empty string.

Where the rule applies

The rule applies to each invoice line in IncludedSupplyChainTradeLineItem and checks AssociatedDocumentLineDocument/LineID.

Context (rule/@context)
//ram:IncludedSupplyChainTradeLineItem
Test expression (assert/@test)
(ram:AssociatedDocumentLineDocument/ram:LineID!='')