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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
DeoYadav
Regular Visitor

data refresh to work, if other excel data source fails to refresh or is broken

Hi,

If the PBI report is based on multiple data source then what could be the method for schedule refresh to work on the web service if other excel data source is broken or fail to refresh?

 

Appreciate your ideas!

 

Thank you, 

 

 

 

5 REPLIES 5
Anonymous
Not applicable

Hi,

 

Please paste the Advanced editor code on a blank query, This might be help.

 

EzgiAslankara_0-1672681080736.png

 

 

If my answer helps, please accept the solution.

 

Regards 🙂

 

let

Path = "C:\Users\TR100722\Desktop\powerbi\Form.xlsx",

Result = try Binary.ToText(File.Contents(Path)),

Output =if Logical.From(Result[HasError]) then "not exist" else Excel.Workbook(File.Contents("C:\Users\TR100722\Desktop\powerbi\Form.xlsx"), null, true)

in

Output

 

Greg_Deckler
Community Champion
Community Champion

@DeoYadav Depends, you can refer to this: Dealing with errors - Power Query | Microsoft Learn. You could, for example, add a step or multiple steps that removes all errors in all columns. Thus, if there was an error involving data then this would not impact the loading of the table (it would likely load as a blank table for example) but not result in an error that would affect the other queries potentially. However, it is doubtful that the report would end up with valid information anyway.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler thank you for sharing, will go through it and try if it works for me. in my case, I'm using excel data on the cloud and other data sources too.

 

thank you.

Idrissshatila
Super User
Super User

Hello,

You should use a data gateway if you have a data source that is on premises not on cloud, and you should setup the data gateway in the service. Also the server which has the datasets should be turned On when the data is refreshing.

 

Here is a link on data gateway https://learn.microsoft.com/en-us/power-bi/connect-data/service-gateway-onprem

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




@Idrissshatila data is on the cloud in my case. thank you.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.