# AF-0010

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

> Es wurde kein Wert angegeben. Es muss eine Auftragsreferenz angegeben werden.

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

> Es wurde kein Wert angegeben. Es muss eine Auftragsreferenz angegeben werden.

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

In English: No order reference: an invoice to the federal government must give the order reference (Auftragsreferenz).

## Why it fails

- ebInterface: `InvoiceRecipient/OrderReference/OrderID` is missing or empty. UBL: `cac:OrderReference/cbc:ID` (BT-13) is missing; Peppol only needs it or a buyer reference (BT-10), e-Rechnung.gv.at needs the order reference.

## How to fix it

- Give the reference the federal office gave you with the order: an order number (Bestellnummer, ten digits starting with 47), a buyer group (Einkäufergruppe, three characters such as Z01) or a buyer group and a reference of your own (Z01:Projekt 7). The portal finds the office the invoice is for from it.

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