Skip Failed Sources When Appending Queries in Excel Power Query
Question details
Append the results of multiple Power Query source queries while skipping sources that return errors.

- Product
- Microsoft Excel Power Query
- Device & OS
- not provided
- Scenario
- A user wants to combine several source queries even if one or more fail to load.
- Observed behavior
- The append operation can fail when a source query returns an error.
Check the names of the source queries in Power Query Editor and confirm that successful queries return tables. Identify the columns you expect in the combined result, especially if all sources might fail.
Remove Failed Query Results Before Combining Tables
Use an M query to filter out source-level errors and append the remaining tables.
This pattern removes errors in the list of query results. It does not remove error values inside otherwise successful tables.
In Excel, select Data > Queries & Connections, then double-click the query you want to edit.
In Power Query Editor, select Home > Advanced Editor.
Replace the editor contents with the following code, then replace Table1 through Table4 with your source query names: let tablesToCombine = {Table1, Table2, Table3, Table4}, toTable = Table.FromList(tablesToCombine, Splitter.SplitByNothing()), noErrors = Table.RemoveRowsWithErrors(toTable, {"Column1"})[Column1], Source = Table.Combine(noErrors) in Source
Select Done, review the combined preview, and choose Home > Close & Load to return the result to Excel.

Work With Combined Spreadsheet Data in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and Microsoft Office format compatibility for a smooth move between office suites. The Power Query M solution above must be run in Excel; WPS does not fix Power Query errors.

Frequently Asked Questions
What happens if one source query fails?
Table.RemoveRowsWithErrors removes its error result from the list before Table.Combine appends the remaining successful tables.
What if every source query fails?
Add an empty fallback table with the expected column names to the list passed to Table.Combine. The result can then contain those columns even when no source table loads.
Will this remove error cells inside a source table?
No. It skips source results that are errors; it does not clean errors within a table that loaded successfully. Remove those errors in the source query or in a separate transformation.
How can I tell whether a source was skipped?
Check the individual source queries in Power Query Editor. The combined result alone may not show that a source failed, so compare it with the expected sources after refreshing.




