Why does cleaning one sample file change every review export combined by Power Query?
This external workflow can consolidate authorized human review exports associated with AISwapLab projects. It is not a site connector, a folder upload for generation or a guarantee that arbitrary files share one schema. The documentation-based procedure is unexecuted. It differs from appending already prepared tables: the shared function must first extract the intended table from each file, and that earlier per-file stage can silently remove or misclassify records.
What to do next
- 01
Inventory eligible files and their extraction structure
Preserve the source folder and list the actual included paths, extensions and expected schema. Filter the file-system view before combining when only a subset belongs in the report. Identify header or explanatory rows that appear in every file and any legitimate exceptions. Do not assume the first file is representative merely because Power Query selects it as the default example. Use nonprivate fixtures while establishing the parser and exclude unrelated files deliberately rather than waiting for a conversion failure to reveal them.
- 02
Inspect the sample query and linked helper function
Locate Transform Sample File and the generated helper queries. Microsoft documents that changes to the example extraction query transfer to the parameterized function applied to each binary. Review steps such as removing top rows or promoting headers at this per-file stage. A change that removes a preamble from the sample can remove real records from another file lacking that preamble. Keep output-level transformations distinct from per-file extraction so the operation is performed at the intended boundary.
- 03
Test contrasting input files and reconcile exclusions
Use at least two files with unmistakable source markers and inspect their extracted records individually as well as in the combined output. Include a deliberate structure mismatch and verify that it is detected rather than silently losing records. Record any Skip Files with Errors setting and reconcile skipped filenames; a clean output can be incomplete if failures are simply excluded. Retain the source filename where appropriate and compare expected records by source after refresh. A correct total row count alone can conceal one file’s missing rows offset by another file’s repeated headers.
A concrete example
Unexecuted fixture: export A begins with two explanatory lines while export B begins directly with its header. Removing two rows in the shared sample transformation may clean A while deleting meaningful content from B. The proposed diagnostic classifies those structures before applying a shared extractor. No folder was connected and no files were combined here; the example is a parser-ownership plan, not a measured ingestion result.
Production ledger native-contract worksheet
| Contract | Proposed proof | Reject when |
|---|---|---|
| Extractor | Inspect sample query and linked function | One sample is assumed representative |
| Completeness | Reconcile records by source filename | Skipped errors vanish from the report |
Before you call it ready
- Separate per-file extraction from final combined-table steps.
- Verify the actual eligible file list and representative structures.
- Reconcile skipped files and source-specific record counts.
When to stop or choose another method
Stop when included files do not share the extractor’s assumed structure. Separate their transformations or establish a justified normalization route before combining. Do not treat skipped-file success as complete production evidence or discard source files after a sample preview.
