ACE Rejects for FIRMS Codes: Errors 157, 158, 159, 164 and 028

Reviewed by Gustavo Melendez · Last reviewed 2026-10-27. Dates given for CBP's FIRMS list in this guide are data dates, not review dates.

When ACE rejects an in-bond arrival over its FIRMS code, the error tells you which problem it found: 157 means no FIRMS code was sent, 158 means the code is not on CBP’s file, 159 means the code is not active, and 164 usually means the code is not on file for the arrival port. FTZ transactions return 028 for a code that is not on file and 211 for a code that is not an FTZ site. Since August 10, 2024, ACE applies these checks to in-bond arrivals by every mode except air.

Most of these rejects can be caught before you transmit by checking the code against CBP’s FIRMS list. A few FIRMS-related rejects, such as bond and direct delivery problems, cannot.

Which ACE errors involve FIRMS codes?

Error Text as CBP writes it Transaction In effect Source
157 FIRMS CODE REQUIRED In-bond arrival: ocean, rail and truck August 10, 2024 CBP trade notice
158 FIRMS CODE NOT ON FILE In-bond arrival: truck August 10, 2024 Same notice
159 FIRM NOT ACTIVE In-bond arrival: truck August 10, 2024 Same notice
164 FIRM NOT ON FILE FOR DDPP In-bond arrival: truck August 10, 2024 Same notice
028 FIRMS CODE NOT ON FILE FTZ Listed in CBP’s FTZ error codes by February 2023; named for FTZ in-bond arrivals in the 2024 notice Same notice; CATAIR Appendix P
211 FIRMS CODE IS NOT AN FTZ SITE FTZ Listed in CBP’s FTZ error codes by February 2023 CATAIR Appendix P
238 FIRMS CODE NOT APPROVED FOR DIRECT DELIVERY e214 FTZ admission Scheduled for ACE production on September 17, 2026 CSMS #69902241
321 FIRMS location not in the same port cluster Cargo release Late August 2025 CSMS #66026456 and CSMS #66052381

Error numbers belong to a transaction set, so read them with the application that returned them. The same number can mean something unrelated elsewhere: in CBP’s FTZ error list, 158 and 159 are tariff and FDA disclaimer errors, and 164 is NON DIRECT DELIVERY – ADMSN NOT ON FILE.

CBP tested the in-bond validation in the ACE certification environment from March 2, 2024 (CSMS #59651310) and updated the implementation guides in CSMS #59875134. For rail, ocean and truck X12 353 messages, that update puts the FIRMS code in element M1517 when the M1501 code is 1, 2 or 3. CBP’s notice said in-bonds that originate by air were not yet covered; check later CSMS messages before assuming that is still true.

What does each error mean?

157 FIRMS CODE REQUIRED

The arrival was sent without a FIRMS code. 19 CFR 18.1(j) requires the in-bond arrival report to include the FIRMS code of the merchandise’s location within the port, within two business days of arrival.

  • Usual cause: an empty field. The facility was not captured at booking, or a mapping drops the code when the message is built.
  • Before filing: make the FIRMS code a required field for non-air arrivals, and check that it reaches the outgoing message.

158 FIRMS CODE NOT ON FILE

ACE could not find the code in CBP’s FIRMS file.

  • Usual cause: a typo or a value that is not a FIRMS code at all, such as a port code or a carrier’s location code. The letter O and the digit zero are easy to swap, and both occur in real codes: O927 starts with the letter O, while E0F6 contains a zero.
  • Before filing: look the code up exactly. Do not reject or rewrite a code because it is not a letter followed by three digits; about 31% of real codes are not. FIRMSapi’s exists check maps to this reject.

159 FIRM NOT ACTIVE

The code is on file but not active.

  • Usual cause: a deleted code reused from a template, a saved customer address or an old arrival notice. About 36% of the codes in CBP’s published list are deleted.
  • Before filing: check the status of every code at the point of use. If it is deleted, ask the facility for its current code rather than picking another code at the same address. Deleted and inactive FIRMS codes covers this in detail. FIRMSapi’s active check maps to this reject.

164 FIRM NOT ON FILE FOR DDPP

CBP’s notice lists this text without spelling out “DDPP”. The same notice says ACE checks that the FIRMS code is within the in-bond arrival port, and CBP’s in-bond error dictionary for ABI filers (CATAIR Appendix T, September 2025) words 164 as FIRM NOT ON FILE FOR PORT: a FIRMS code not on file for the port of in-bond arrival. FIRMSapi maps its port check to 164 on that basis. If a 164 persists after you have checked the port, ask your CBP client representative what triggered it.

  • Usual cause: a code registered under a different CBP port from the arrival port. City names mislead here: LBCT LLC in Long Beach (WAC8) is registered under 2704, Los Angeles, not 2709, Long Beach.
  • Before filing: compare the code’s registered port with the arrival port. Some ports accept codes from neighboring ports, and those port clusters are not in the FIRMS list, so treat a mismatch as a question for the facility or port. FIRMS code vs. port code explains registered ports.

028 FIRMS CODE NOT ON FILE (FTZ)

CBP’s FTZ error list describes 028 as a value provided as a FIRMS code that is not on file. The same list has related FTZ errors:

Error Text Meaning in CBP’s description
051 FIRMS NOT BONDED The FIRMS record does not show the appropriate bond
052 FIRMS FTZ PORT MISMATCH The port code and the FIRMS code are not in the same port cluster
210 FIRMS CODE IS DEACTIVATED STATUS The code is deactivated, often because the site’s Type 4 FTZ bond is terminated
211 FIRMS CODE IS NOT AN FTZ SITE The code is not facility type 02, FTZ
212 NO TYPE 4 BOND LISTED ON FIRMS CODE No Type 4 FTZ bond is associated with the FTZ site’s code
213 NO ACTIVE BOND LISTED ON FIRMS CODE The Type 4 FTZ bond on the code is terminated
  • Usual cause: a mistyped or retired code, or a code for another facility type at the same operator, such as its bonded warehouse instead of its FTZ site.
  • Before filing: confirm the code exists, is active and is type 02. For 210, 212 and 213, CBP sends the FTZ operator to the CBP cargo office at the local port. With ftz_admission as the use, FIRMSapi’s exists check maps to 028 and its type_for_use check to 211.

238 FIRMS CODE NOT APPROVED FOR DIRECT DELIVERY

Added for e214 FTZ admissions by CSMS #69902241. The bulletin gives the error text but not the approval criteria.

  • Before filing: this cannot be checked from the FIRMS list. Confirm direct delivery approval with the FTZ operator or the port.

321 FIRMS location not in the same port cluster

A cargo release error for a FIRMS location outside the port cluster of the filing. CSMS #66026456 announced it for ACE Cargo Release production on August 26, 2025, and a follow-up, CSMS #66052381, gave August 28, 2025.

  • Before filing: check the registered port first. Cluster membership is not in the FIRMS list, so confirm with the port or your broker.

What can’t the FIRMS list tell you?

CBP’s notice says that for locations that require a bond, ACE verifies the correct bond type is in place for the FIRMS code. Bond status, direct delivery approval, FTZ zone IDs and port clusters are not in the published FIRMS list. No lookup against the list, including FIRMSapi’s, can confirm them; check them in ACE or with the facility.

How do I catch these before I file?

FIRMSapi’s validation endpoint runs the list-based checks in one call and returns the conditions it cannot check as a separate list:

FIRMSapi check Reject it helps you avoid
exists 158, or 028 with ftz_admission
active 159
port 164
type_for_use with ftz_admission 211

Validating FIRMS codes before you file explains each check, its order and how to show the results to users. FIRMSapi checks CBP’s published list as of its dataset date and does not talk to ACE, so a passing result does not guarantee acceptance. Confirm the filing in ACE or with your customs broker.

Sources

Error numbers and their wording come from CBP’s own documents. CBP updates its implementation guides, so check the maintained pages for the current version before you change a filing workflow.

Quickstart · API reference · Pricing · Contact