Compare a commercial invoice with a packing list
An invoice and its packing list should agree, but rarely in the same layout, order or units. This recipe is about the freight decisions: what to match lines on, how much difference to allow and what a reviewer should see. For every setting of the block, see Reconcile two documents or lists.
Use this templateNeeds an AI connection.
Choose what to match on
Section titled “Choose what to match on”Pick the identifier both documents really share. The block suggests a key when both lists have a column with the same name, and you can use up to 3.
| Your documents | Match on |
|---|---|
| Both list a SKU or part number | That column |
| Part numbers repeat across orders | Order number and line number together |
| One invoice line covers several heats or batches | A key column that holds several values. The row matches each one |
Rows sharing a key are compared as one group, with numbers added up. So two certificates for one invoice line are checked against the line’s total. Other values must be the same on every row of the group.
Decide how much difference is allowed
Section titled “Decide how much difference is allowed”Add a comparison per column, with a Tolerance where the documents can honestly differ:
| Column | Comparison | Why |
|---|---|---|
| Quantity | Equals | One unit short is usually what you want to catch |
| Gross and net weight | Within a small percentage, as you agree | Scales and rounding differ, so exact matches raise noise |
| Description | Trim whitespace, no Match case | Layouts differ, but the words should not |
| Commodity code, origin | Equals | A difference here changes what you declare |
These are starting points, not rules. Set them with whoever is accountable for the declaration, and tighten them for goods where a small difference matters.
Decide also what a line on only one document means. For an invoice and packing list it is normally a finding: every line should be on both.
Send only the differences to a person
Section titled “Send only the differences to a person”Set Ask a person to When a check fails, with the answer as Data to review and the documents as Source documents. The reviewer sees each list’s values side by side with the difference between them.
They can accept a difference with a note, or correct a misread value and click Apply corrections and re-check. Later blocks read the corrected values from Reviewed data, so a declaration built afterwards uses them.
What goes wrong
Section titled “What goes wrong”- Reading the same mistake twice. If the AI misreads both documents the same way, they still agree. Add single-value checks against your own records, such as the commodity code check.
- A blank key. It’s always a finding, so a line where the AI missed the part number goes to a person instead of passing quietly.
- Very large lists. One step reads up to 20,000 rows across its list checks. Past that, the step fails.
Try it
Section titled “Try it”Checklist compares the values itself, without calling any outside system, so a draft run shows you the real result on your own documents. The AI’s reading depends on your model and documents: try it on real ones.