# F-LIB309

Source: https://xmlvalid.com/rules/F-LIB309

> Invalid ID: '…'. Must be a value from the codelist

- Level: error
- Rule sets: OIOUBL 2.1 Invoice rules (Denmark) 1.17.2, OIOUBL 2.1 Credit Note rules (Denmark) 1.17.2, OIOUBL 2.1 Reminder rules (Denmark) 1.17.2
- Test: `((cbc:ID/@schemeID = $TaxCategory1_schemeID) and not(contains($TaxCategory1, concat(',', cbc:ID, ',')))) or ((cbc:ID/@schemeID = $TaxCategory2_schemeID) and not(contains($TaxCategory2, concat(',', cbc:ID, ',')))) or ((cbc:ID/@schemeID = $TaxCategory3_schemeID) and not(contains($TaxCategory3, concat(',', cbc:ID, ',')))) or ((cbc:ID/@schemeID = $TaxCategory4_schemeID) and not(contains($TaxCategory4, concat(',', cbc:ID, ','))))`

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