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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
bhenry
Frequent Visitor

Dataflow Refresh Failing

I have a dataflow built to combine the files from a sharepoint folder.  This folder holds a number of xlsx docs that are daily reports of our phone system usage by our employees.

 

Each morning at 1 AM, the previous day's data is received from the phone service provider as an attachment in an email.  I have a Power Automate flow that gets the contents of the attachment and saves it into the deignated sharepoint folder.

 

The datafow runs about an hour later, but it fails.

 

I need to go to the sharepoint folder and Open and then Close the newly added attachment.  Once I have done that, I manually refresh the dataflow and it executes successfully in seconds.

 

Any trouble shooting ideas to solve this problem and allow this to be a fully automated process? 

 

Thanks

1 ACCEPTED SOLUTION

Hi, @bhenry 

After saving the attachment in SharePoint, add a step in the Power Automate flow to validate the file. You can check the file properties or even use a script to programmatically "open" the file.

Adjust the timing of the data flow to ensure it runs after the email processing is fully completed. You can add a delay to the flow to give it extra time. Implement logging in the Power Automate flow to capture any errors when saving or processing the file.

 

Best Regards,

hackcrr

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
bhenry
Frequent Visitor

It has not worked.  I built the flow and the flow worked but the query is not refreshing until I open it one time.  It is coming in as an .xlsx attachment in the email.  I was thinking it may be something related to our email security measures for attachments, but wasn't sure if anyone else has seen this

Hi, @bhenry 

After saving the attachment in SharePoint, add a step in the Power Automate flow to validate the file. You can check the file properties or even use a script to programmatically "open" the file.

Adjust the timing of the data flow to ensure it runs after the email processing is fully completed. You can add a delay to the flow to give it extra time. Implement logging in the Power Automate flow to capture any errors when saving or processing the file.

 

Best Regards,

hackcrr

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Did this work before?  Sounds like the Excel file they sent is not a true .xlsx and only becomes one when you touch it.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.