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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
olimilo
Post Prodigy
Post Prodigy

If error then do other query else continue in Power Query? And row-wide/multiple col error checking?

I'm not sure if this is entirely possible but is there a way to do an "if error then do query B else continue to the next step" and a row-wide/multi-column error checking? I know about the try statement, but it can only check one column per step (at least based on the examples I found).

 

I have Excel files that sometimes result in a #NAME error in Power Query, even if you open the file manually and checking errors in the formulas, there doesn't seem to be any error at all. I'm not sure if this is a Unicode encoding problem (everything is entered in the Roman Alphabet though).

 

What I'd like to do is to check the row for errors and do the next step if there aren't any, otherwise, do a separate query that will list all of the file names with errors in them (because PQ will halt the refresh once it encounters an Excel cell error).

1 REPLY 1
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @olimilo

 

I'm afraid there is no better way to achive that.You may get more further help from Power Query forum.

 

Regards,

Cherie

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors