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
ronant
Frequent Visitor

Refresh dataset via API vs Powerbi Desktop

Hello,

 

I'm having trouble updating a dataset.

 

When publishing a dataset via Powerbi Desktop, it takes only a few minutes and always works.

 

When doing it via the API or powerbi's website, it either times out with the error:

Timeout expired. The timeout period elapsed prior to completion of the operation.

Or:

ODBC: ERROR [08S01] [Microsoft][Amazon Redshift] (30) Error occurred while trying to execute a query: [SQLState 08S01] server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.

The error is thrown randomly after the refresh is started, it can be 10 min, 1 or 2 hour after.

 

The SQL query takes 10-20 minutes to complete when I open the view used to do the refresh.

 

What is causing the failure?

 

Best regards

1 REPLY 1
Anonymous
Not applicable

HI @ronant,

The first error message means your refresh operation failed due to processing time exceeding the timeout limit, have you configured the timeout property in your data connector and database side? (for power bi pro users the maximum timeout on power bi service is 120 minutes)

Troubleshooting refresh scenarios - Power BI | Microsoft Docs

The second error message means the remote server has closed the connection when data refreshed. I'd like to suggest you log in to the database side check corresponding settings if they block the requests.

Regards,

Xiaoxin Sheng

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.