Tariff Preflight

Home / Rejection reasons / The file is deemed unsafe. Please correct the file data before reuploading

rejects the whole file

"The file is deemed unsafe. Please correct the file data before reuploading"

One of the reasons CBP gives when it rejects a CAPE declaration file. Here is what it means and what to do about it.

CBP's wording
The file is deemed unsafe. Please correct the file data before reuploading
Resave file and try upload again

What it means

CBP does not publish what triggers this. Files that contain formulas, macros, or cells beginning with characters such as = + - @ are the usual suspects, because security scanners treat those as possible spreadsheet attacks.

What to do

CBP's own advice is to save the file again and retry. If that does not work, rebuild the file so it holds nothing but the header and plain 11-character entry numbers: paste values, not formulas. A file built by Preflight contains only letters and digits.

In short: fix, then send again. Something about the entry has to be corrected before CAPE will take it.

What happens to the rest of the file

Nothing in the file is processed. CBP's guide says to correct the problem and upload the entire file again.

Can it be caught before uploading?

Yes, always. Preflight can tell this for certain from the file itself, before you upload.

Find out before CBP tells you

Drop your file on the checking page. It runs on your own computer, it is free, and nothing is uploaded. Already got this error back? Drop in the file CBP gave you and each entry is explained.

Related reasons

CBP's wording is quoted from its guide CAPE Declarations and Error Definitions and its IEEPA Duty Refunds page. The explanation is ours. Tariff Preflight is not affiliated with CBP.