# AF-0055

Source: https://xmlvalid.com/rules/AF-0055

> Es wurde kein Wert angegeben. Es muss eine Bestellpositionsnummer angegeben werden, wenn die Auftragsreferenz eine Bestellnummer ist.

- Level: error
- Rule sets: e-Rechnung.gv.at checks (ebInterface) Fehlerliste, October 2026
- Context: `/*:Invoice/*:Details/*:ItemList/*:ListLineItem`
- Test: `not(at:order-number($order)) or $position != ''`

> Es wurde kein Wert angegeben. Es muss eine Bestellpositionsnummer angegeben werden, wenn die Auftragsreferenz eine Bestellnummer ist.

- Level: error
- Rule sets: e-Rechnung.gv.at checks (UBL) Fehlerliste, October 2026
- Context: `/ubl:Invoice/cac:InvoiceLine | /cn:CreditNote/cac:CreditNoteLine`
- Test: `not(at:order-number($order)) or $position != ''`

In English: An order position number is missing on a line: when the order reference is an order number, each line must name the position of the order it bills.

## Why it fails

- ebInterface: a `ListLineItem` has no `InvoiceRecipientsOrderReference/OrderPositionNumber`. UBL: an invoice line has no `cac:OrderLineReference/cbc:LineID` (BT-132).

## How to fix it

- Give each line the number of the order position it bills (10, 20, 30 as in the order). With an order number the reference on the line should be the same as the one in the header.

Validate a document against these rules: https://xmlvalid.com/validate
