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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
izz_faas
Regular Visitor

Power BI refresh issues after a Power Automate run (saving an Excel file to SharePoint)

I'm getting this weird flow issue that I can't figure out.

 

The flow I have set up is:

  1. An email with an Excel attachment arrives in my inbox every morning at 7am
  2. The email triggers a Power Automate flow to save the attached file to SharePoint (it overrides the file from the previous day)
  3. I have a Power BI report that references the file in SharePoint.  The report is set to refresh daily at 8am (after a new file has been saved)

The issue:

Once the new file is saved to SharePoint by Power Automate, Power BI can no longer refresh with the new data.  I get this error message instead:

izz_faas_0-1701118680880.png

To fix the issue I just have to navigate to the SharePoint file each day after the Power Automate flow has been triggered and open the file.  Once the file has been opened after the Power Automate run, Power BI no longer has issues refreshing.  For the past several month, I have been going in and manually opening the file daily between 7 and 8 am, but would like to stop performing this manual step. 

 

I didn't always have this problem.  I set up this process a couple of years ago and it just started having problems several months ago.

 

The email looks like this:

izz_faas_1-1701118764748.png

The Power Automate flow looks like this:

izz_faas_2-1701119519671.png

 

izz_faas_3-1701119589284.png

izz_faas_4-1701119649833.png

The SharePoint file looks like this:

izz_faas_5-1701119747327.png

 

8 REPLIES 8
hmasim_
Frequent Visitor

Hi @izz_faas  are you able to resolve the issue? Facing the same problem. My power automate copy the corrupt file on one drive

Many thanks

anjanav
New Member

Any solutions to this issue?
anjanav
New Member

Any solutions to this issue?
GilbertQ
Super User
Super User

Hi @izz_faas 

 

It appears that for some reason the file when uploaded to SharePoint appears to be corrupted. What happens if you rather keep the files and replace the contents with your Excel file you receive to see if that works?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Thank you for your quick response and your recommendation.  In the end, however, that option did not work for me either.

 

Here is the new Power Automate flow:

 

izz_faas_0-1701207462271.png

 

and here is the error message I recieve: 

izz_faas_1-1701207517120.png

Once I open the file after the Power Automate flow, the Power BI refresh works.

Hi @izz_faas 

 

What happens if you first delete the data from the file and then insert it again?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Okay, here is my new flow:

 

izz_faas_0-1701271368654.png

 

izz_faas_1-1701271391120.png

 

Here is my error message:

izz_faas_2-1701271459762.png

 

Same as before.  Doesn't work until I open the file.

 

Hi @izz_faas 

 

That is weird.

 

The only other thing I can think of is what if you got the data in the Excel file and then saved it as a CSV?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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