To prepare a Bill of Entry for Dubai Trade from an Excel invoice: fill the invoice items sheet, enter the invoice header in M2 Generator, click Import & Validate, fix any flagged lines, generate the text file, then upload it on the invoice page in Dubai Trade — every line item is populated. Validation runs locally on your Windows PC.
Before you start
- M2 Generator installed and activated on your Windows 10/11 PC
- The commercial invoice (and any permits for regulated goods)
- Microsoft Excel to edit the invoice sheet
- Your Dubai Trade login for the final upload
Step 1 · Prepare the invoice sheet
The Invoice Items sheet has ten columns: HS Code, Description, Stat Qtty / No. of Pcs, Supplementary Quantity, Net Weight (Kg), Value, Country of Origin, BOE Ref. No., Exemption Ref and Permit Reference Number. Enter one row per invoice line.

Three habits prevent most data problems:
- Use the right HS code. Use the 8-digit or 12-digit code that applies to the goods and confirm it with the official sources. The free HS code search is a quick check, not an official source.
- Write real descriptions. “Items” or “samples” invite questions; describe the goods as the invoice does.
- Use two-letter country codes for origin (for example
CN,GB,US).
Step 2 · Enter the invoice header details
In the app, complete the header fields marked with an asterisk: regime type, declaration type, invoice number, invoice date, total invoice pages, seller’s name, invoice type, payment instrument type, INCO terms, invoice value, invoice currency and goods condition. Add exemption type and freight or insurance charges (with currencies) when they apply. Until the required fields are filled, the app keeps file operations disabled — the on-screen message reads “Fill in all header fields (*) to enable file operations.”

Step 3 · Open Excel and Import & Validate
Use Open Excel to open the invoice items sheet, add your lines and save. Then click Import & Validate. The app reads every row, runs its checks and shows summary tiles for the total invoice value, total net weight and number of line items — compare these with the paper invoice as a quick sanity check.
Step 4 · Review the flags and fix the sheet
Lines that need attention are highlighted in the results table. The most important flag is the controlling-authority column: when goods are regulated and the permit reference is empty, the line shows the authority with “(Permit Missing)”.

| What you see | What to do |
|---|---|
| HS code not in a valid 8- or 12-digit format | Correct the code in Excel (check for lost zeros) and import again. |
| Controlling authority shown with “(Permit Missing)” | Obtain the permit from that authority and enter its number in Permit Reference Number. See controlling authorities. |
| Unit or quantity inconsistent with the line | Check the statistical unit and quantity columns against the invoice. |
| Totals differ from the invoice | Look for missing, duplicated or mistyped lines and values. |
Re-run Import & Validate after each fix until the lines are clean.
Step 5 · Generate the text file
With the data validated, generate the comma-delimited text file (the button in the app is labelled “Generate Text File”). It is created on your PC; nothing is uploaded by M2 Generator.
Step 6 · Upload on the Dubai Trade invoice page
Log in to Dubai Trade and upload the generated text file on the invoice page. It populates all the line items for you — no manual data entry. Check the declaration on screen before you submit it. Always verify the output: you are responsible for the accuracy of what you submit, and customs data such as HS codes and controlling authorities can change.
Common mistakes to avoid
- Using the supplier’s HS code without confirming it for the UAE tariff
- Leaving the permit reference blank for regulated goods
- Entering freight or insurance in the wrong currency or forgetting it when the invoice is not CIF
- Skipping the totals check against the commercial invoice
For a printable pre-submission list, see the 12-point BOE invoice checklist.
For information only — not advice. HS codes, tariff classifications, controlling authorities and permit requirements are set by Dubai Customs and other authorities, who may change them at their sole discretion and without notice. Information in the software and on this website is general information only — it is not customs, legal or professional advice. Always verify with the official sources before you submit. Read the full disclaimer.
Skip the manual work
M2 Generator validates your Excel invoice and generates one text file that fills in every line item on the Dubai Trade invoice page — processed locally on your PC. Paid software, 1 license per PC; we reply to every email within 24–48 business hours.
Not sure yet? Book a 15-minute walkthrough first.