Skip to content

CDS10020: Invalid value

A code isn't in the list allowed for this field, for example an export-only document code on an import.

What CDS10020 means

Domain error: data element contains invalid value

A code used in the declaration is either not a recognised code or is not a code permitted on the particular declaration. For example: A document code which is only permitted on export declarations has been declared on an import declaration. A valid code has been entered on the declaration, but has been entered at the wrong level (header or item) to which it is permitted.

HMRC, Customs Declaration Service error codes, list dated 9 June 2026. Contains public sector information licensed under the Open Government Licence v3.0.

How to fix CDS10020

  1. Go to the element the rejection points to and correct it.
  2. Send the declaration again with a new local reference number in DE 2/5. CDS rejects an LRN reused within 48 hours (CDS12003).

All 181 CDS error codes

Sources

Checked against these sources on 12 November 2026.