# AF-0056

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

> Der angegebene Wert '…' ist ungültig. Die angegebene Bestellpositionsnummer muss eine positive Ganzzahl und darf maximal 5 stellig sein.

- 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 = '' or (matches($position, '^[0-9]{1,5}$') and xs:integer($position) gt 0)`

> Der angegebene Wert '…' ist ungültig. Die angegebene Bestellpositionsnummer muss eine positive Ganzzahl und darf maximal 5 stellig sein.

- 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 = '' or (matches($position, '^[0-9]{1,5}$') and xs:integer($position) gt 0)`

In English: The order position number must be a positive whole number of at most five digits.

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