Define a successful import as accounted-for rows
An import is not complete merely because a results table appears. Every input row needs one outcome: accepted, rejected for correction, or deliberately excluded under a recorded rule. For a recurring bookkeeping CSV, split clean rows from errors while preserving the original text and row reference. This prevents a tidy output from concealing work that still needs attention.
Power Query distinguishes cell errors from failed steps. The design below treats a conversion problem as a review item and a missing required column as a file-level stop. Those are proposed operating rules, not default guarantees supplied by the software.
Build two outputs from the same intake
- Import the CSV once into a staging query. Keep SourceFile, SourceRow, RawDate and RawAmount before creating typed columns.
- Choose the date interpretation explicitly. For this exercise, require YYYY-MM-DD and US-dollar amounts using a decimal point.
- Create checks for valid date, valid amount and required RecordID. Capture which check failed rather than using a single unexplained error flag.
- Reference the staged result into Accepted and Rejected queries. Each source row belongs in exactly one; a row with two problems remains one rejected row with two reasons.
- Load a control summary showing input count, accepted count, rejected count and excluded count. Gate release on a reviewer accepting the summary and outstanding exceptions.
Power Query supports combining consistent file layouts. When several monthly files are involved, keep the same split and counts for each file as well as the combined batch.
Copy this five-row synthetic test
| ID | Date text | Amount text | Expected outcome |
|---|---|---|---|
| R1 | 2026-10-01 | 100.00 | Accepted |
| R2 | 2026-10-02 | 25.50 | Accepted |
| R3 | 2026-02-30 | 30.00 | Rejected: invalid date |
| R4 | 2026-10-04 | pending | Rejected: invalid amount |
| R5 | 2026-10-05 | -5.00 | Accepted |
The expected split is three accepted rows and two rejected rows: 3 + 2 = 5. The accepted amount is $120.50. R3 still carries the original $30.00 text, but it is outside the accepted total. R4 has no accepted numeric amount. No row receives a replacement zero, and the negative value in R5 is not rejected solely because it is negative.
These are invented records and expected outcomes for your rehearsal. A policy about allowed credits or negative values would be a separate business check.
Make correction a new accountable event
Assign rejected rows to an owner with a due date and link to the source. The owner confirms the correct value from evidence; the importer does not infer a date from surrounding rows or interpret “pending” as zero. Preserve the rejected version and record the replacement file or authorized correction separately.
If the corrected source is re-imported, identify it by batch and row identity so it replaces the appropriate provisional result without duplicating previously accepted rows. Avoid editing a refreshable output table: those edits may disappear and hide the actual correction history.
Challenge the controls before relying on them
Rename the Date column in a test file. Expect a stopped file and a visible error, not five apparently accepted blanks. Next put both an invalid date and invalid amount in R3. The rejected count must remain two, while R3 now has two reasons. Finally refresh the unchanged input twice and compare the exact accepted and rejected IDs.
A reviewer should be able to trace any accepted amount back to its unchanged raw value and find every rejected item without opening the query editor. This article describes a proposed import control, not a tested customer integration. A ParseMill workflow review can scope repeated import and exception handling alongside your existing spreadsheet tools.
Assisted setup with ParseMill
Put one spreadsheet workflow into practice
Share the shape of the input, the expected output and how often the work repeats. We can assess a bounded implementation with row checks, exceptions and a handover your team can use.
Discuss this deploymentDescribe your tools, the repeated task, its frequency and the result you need. We agree the scope and any fee before starting. Third-party connections need their own fit assessment; sending a request does not activate an integration.
For supplier invoice PDFs, try the invoice-to-Excel example to see ParseMill’s extraction, source review and workbook export.
Sources and editorial notes
- Microsoft: Power Query errorsChecked 2026-11-09
- Microsoft: Combine filesChecked 2026-11-09
Written by ParseMill. Worked examples are illustrative process examples, not customer results. Software availability can vary by subscription and region; check the linked documentation for your account. Review decisions and approvals remain with your team.