Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Return Errors and Error Messages From Table

I'm looking to create a simple error log for the users of my power query spreadsheet. I'm looking to following the methodology found in this post viewing-error-messages-for-all-rows-in-power-query. However, this method uses the Try function on a column.

My errors are spread out across multiple columns. I tried to unpivot columns but I can't because of the errors I'm getting.

 

I could also iterate over every single cell like this Desktop/Iterate-over-each-cell-in-a-table, but I'm unsure of how to integrate these two together. Looking at power query's current error query, there is a Table.SelectRowsWithErrors function but not one that works with Columns.

 

Does anyone know how to pull a list of records, and the columns which have errors, along with an error message?

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

Try using Table.ColumnNames to get the names of columns from a table and then invoke a custom function.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.