Power Query Problems

Skip Failed Sources When Appending Queries in Excel Power Query

Muhammad TalhaMuhammad Talha Dec 2, 2026 869 views

Question details

Append the results of multiple Power Query source queries while skipping sources that return errors.

Skip Failed Sources When Appending Queries in Excel Power Query
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.
Before you start

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.

Solution 1Recommended

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.

1
Open Power Query Editor

In Excel, select Data > Queries & Connections, then double-click the query you want to edit.

2
Open Advanced Editor

In Power Query Editor, select Home > Advanced Editor.

3
Enter the append code

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

4
Check and load the result

Select Done, review the combined preview, and choose Home > Close & Load to return the result to Excel.

Remove Failed Query Results Before Combining Tables
Handle an empty result: If every source can fail and you need specific output columns, add an empty fallback table with those column names. For example, replace the Source line with: Source = Table.Combine({#table({"ColumnA", "ColumnB"}, {})} & noErrors). Replace the example column names with your expected columns.
Free Microsoft Office alternative

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.

Review and edit exported or combined spreadsheet data in WPS SpreadsheetsOpen and save Microsoft Excel XLSX and XLS filesUse a familiar interface for everyday spreadsheet workMove between office suites with compatible document formats
QA img-9

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.