Skip to content

Why was my CDS declaration rejected?

Lainstack · · 8 min read · Sources checked 22 November 2026

When CDS rejects a declaration, it returns an error message for each problem it found. Each message carries a validation code, such as CDS12005, a description of what has gone wrong, and a pointer to where in the declaration the problem sits: at header level, or on a numbered goods item. Look the code up in HMRC's error code list, go to the data element the pointer names, and check it against HMRC's Completion Instructions for that declaration type.

Five container cranes at a port, silhouetted against an evening sky
Photo by Marius Niveri on Unsplash

Each row below gives HMRC's meaning, from its error code list, and the data element to check, from the Completion Instructions for imports. The codes are grouped by cause. You can search HMRC's full list of codes in our CDS error codes lookup.

What a CDS rejection message contains

HMRC's Step-by-Step Guide breaks an error message into these parts:

  • Validation code: the reference number for the error, which you use to look up HMRC's guidance.
  • Code description: what has gone wrong.
  • Pointer names: where in the declaration the problem is.
  • Additional information text and codes: further detail on the error, such as which document a tariff measure needs. There can be several lines of it.

HMRC notes that messages shown by third-party software may look different, but will be made up of most, if not all, of the same elements.

ONE ERROR MESSAGE VALIDATION CODE CDS12005, for example. Look it up. CODE DESCRIPTION What has gone wrong. POINTER NAMES Where in the declaration it is. ADDITIONAL INFORMATION More detail, such as a missing document. READING THE POINTER Declaration → GoodsShipment Ends at GoodsShipment: header level (the consignment) Declaration → GoodsShipment → GovernmentAgencyGoodsItem(1) A number in brackets: that goods item, here item 1
The parts of one CDS error message, and how to read its pointer.

How to read the pointer

If the pointer ends at Declaration->GoodsShipment, the error is in a header-level (consignment) data element. If it carries a number in brackets, such as Declaration->GoodsShipment->GovernmentAgencyGoodsItem(1), that number is the goods item with the error: here, item 1. The same error can come back several times, once for each item it affects.

Some errors involve two data elements that depend on each other. HMRC calls these cross-field validation errors: they return at least two messages, one for each data element in the conflict, and the messages have to be read together. HMRC's example is CDS12100, where one message points at the delivery terms (DE 4/1) and the other at the header addition or deduction code (DE 4/9).

To fix any of them, HMRC says to check each data element named against its completion instructions, using the guidance for the right declaration type (imports, exports and so on). When you send the corrected declaration, remember that CDS does not allow an LRN to be reused within 48 hours (CDS12003). HMRC's advice is to change the LRN or add a version number at the end, using letters and numbers only.

Parties and EORI numbers

CodeWhat HMRC saysWhat to check
CDS12005An EORI or VAT number on the declaration is not recognised, or is not permitted in that data element.Each EORI and VAT number, and whether it belongs in the data element it is in. GB EORIs can be checked in our bulk EORI checker.
CDS12081The importer (DE 3/16) and exporter (DE 3/2) must not be the same party.DE 3/2 takes the EORI, where held, of the last seller of the goods before their importation.
CDS12117The importer (DE 3/16) and buyer (DE 3/27) must not be the same party.Buyer details are only required where the buyer is a different party from the importer.
CDS12158A party on a Northern Ireland declaration has an XI EORI, but no NI additional information statements (NIIMP, NIDOM, NIEXP) are present.DE 2/2. For goods entering Northern Ireland, NIDOM or NIIMP must be declared on every goods item.

Commodity codes and tariff measures

CodeWhat HMRC saysWhat to check
CDS10004Commodity code error. HMRC says it is likely to be caused by missing or incorrect additional codes, or by too few digits.DE 6/14 takes the first 8 digits of the commodity code (the first 6 on an H7 declaration). TARIC additional codes go in DE 6/16 and national additional codes in DE 6/17.
CDS40011Missing data element value: a value the commodity code requires, such as a supplementary unit, has not been completed.The Measures column for the commodity code on the Trade Tariff.

Documents, certificates and authorisations (DE 2/3)

Document errors can come from tariff measures on the commodity code. HMRC's worked example is a missing document error where the additional information lines say that measure type 705 on the commodity code requires a document, and list two document codes, either of which would satisfy it. Only one of the listed documents is needed: look each code up in the UK Integrated Online Tariff and Appendix 5A, then add the right document code and statement to DE 2/3.

CodeWhat HMRC saysWhat to check
CDS40045A document is missing: the licence or exemption the goods need.The Conditions box for the commodity code on the Trade Tariff. If you hold no licence, HMRC says to decide whether you can declare a waiver (usually a Y code), following the Conditions box and Appendix 5A.
CDS12119An additional document in DE 2/3 is not allowed, or is missing, for the procedure code in DE 1/10 or DE 1/11.The document codes against the procedure and additional procedure codes.
CDS12007The authorisation has expired, its reference number is not recognised, or it does not belong to the party on the declaration.The authorisation decision number in DE 2/3 and the authorisation holder in DE 3/39.
CDS12150An authorisation number is not valid, or is not authorised for use by the party given on the declaration.DE 3/39, holder of the authorisation.
CDS12148Document code C506 needs a deferred method of payment.DE 4/8. When deferring customs duty, HMRC says C505 and C506 go in DE 2/3 and authorisation types CGU and DPO in DE 3/39.

Procedure codes and declaration type

If the declaration type itself is wrong, our guide to which CDS declaration type to use explains how DE 1/1 and DE 1/2 combine into codes such as IMA and IMZ.

CodeWhat HMRC saysWhat to check
CDS12050The procedure code is missing or invalid. Every item must have a valid procedure code.DE 1/10: one 4-digit procedure code per goods item, from Appendix 1.
CDS11005The requested procedure for each goods item must derive the same declaration category, such as H1.The first two digits of DE 1/10 on every item. HMRC's example: a procedure code from H2 may not be combined with one from H4.
CDS12052No valid declaration type in DE 1/2.That DE 1/2 says whether the declaration is standard, simplified, supplementary or clearance, and pre-lodged or arrived.
CDS12152Additional procedure code 1H7 is missing on an H7 declaration.DE 1/11. The H7 category can't be used unless 1H7 is declared there.

Valuation, currency and payment

CodeWhat HMRC saysWhat to check
CDS12100The delivery terms (DE 4/1) and the addition or deduction code (DE 4/9) are not compatible.Where the delivery terms need an addition or deduction, the matching code must be in DE 4/9. EXW, for example, needs at least a freight charge as an addition.
CDS12080The combination of addition and deduction codes in DE 4/9 is not allowed.Codes that apportion freight by value (AP, AR, AV, BA, BR) must not be mixed with codes that apportion it by gross mass (AQ, AS, AW, BS, BU).
CDS10045The calculated customs value of an item is negative.The deductions in DE 4/9 may exceed the value of the items. Apportioning a deduction must not reduce any single item's value to zero or below.
CDS12174The total amount invoiced (DE 4/11) does not match the total of the item prices (DE 4/14).DE 4/11 is optional. When it is completed, it must equal the sum of the item prices for all items.
CDS12057The invoice currency must be the same for every goods item.Where goods were invoiced in more than one currency, convert the invoice value to sterling (GBP) and declare document code 9WKS in DE 2/3.
CDS12078 and CDS12102No deferment account number in DE 2/6 means DE 4/8 needs an immediate method of payment; a deferment account number needs a deferred one.DE 2/6 must be completed when method of payment E or R is declared in DE 4/8. With immediate codes A, B, C, H, M or Z, every item must use an immediate method.
CDS12125The deferment account number is not recognised, the account is suspended or revoked, or the parties on the declaration have no authority to use it.The account and its authorities. HMRC suggests checking the CDS financial dashboard.

Goods location and transport

CodeWhat HMRC saysWhat to check
CDS12099The goods location code is not recognised: the combination of elements that make up DE 5/23 is invalid.The codes in Appendix 16 and in the supplements to the Tariff, where new goods location codes may be listed.
CDS12112An airport place of loading in DE 5/21 needs an airfreight addition or deduction code in DE 4/9.DE 4/9. HMRC's air transport cost codes are AR, AS, BR and BS.

References and basic checks

  • CDS10001: a required data element, or part of one, is missing. HMRC's example is a party address, which needs name, street and number, country and postcode.
  • CDS11006: the net mass declared is greater than the gross mass.
  • CDS12062 and CDS12132: the DUCR in DE 2/1 is a duplicate, invalid, or in a format CDS doesn't accept.

How Lainstack catches rejections before they happen

Every declaration you send with Lainstack is checked against HMRC's schemas and common CDS rules before it is sent, and you can check every commodity code against the UK Trade Tariff first. If HMRC still rejects one, you see what the error means and which field to fix.

The checks sit inside a workflow your team can see and change. Lainstack reads the commercial invoice and packing list and fills in the declaration, and your team corrects values side by side with the originals instead of keying every line. Once a declaration is sent, Lainstack follows it: holds are answered with documents, corrections go out as amendments, and a person hears only when something needs them.

Check a declaration you already have with the free CDS declaration validator, or see how Lainstack sends and follows CDS declarations.

Sources

Checked against these sources on 22 November 2026. Contains public sector information licensed under the Open Government Licence v3.0.

Fewer rejections, faster fixes.

We onboard every team directly. Leave your details and, if you like, a note about the rejections you see most.

A continuous line forming a handshakeA single white line travels from a left sleeve through two overlapping hands and out through a right sleeve.Get started