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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
KMSudharsan
Frequent Visitor

Power BI Server - Refresh failing in random manner for same data set via ODBC connection

We're experiencing an issue where refresh works successfully sometimes and fails at sometime.
Do we have any limitations on back to back on-demand for a same report? What are all the possible solutions or suggestions on this case?

Should there be any time limit between two refreshes?

1 ACCEPTED SOLUTION
KMSudharsan
Frequent Visitor

Hello guys,

The root cause of this issue is Container exited error, we detected from gateway logs.
The error was fixed at the driver level due to multiple handle required for different use cases for a same report to refresh. Hence handling the allocation will fix this.

View solution in original post

10 REPLIES 10
KMSudharsan
Frequent Visitor

Hello guys,

The root cause of this issue is Container exited error, we detected from gateway logs.
The error was fixed at the driver level due to multiple handle required for different use cases for a same report to refresh. Hence handling the allocation will fix this.

Anonymous
Not applicable

Hi @atulbansal82 ,
May I ask if you have gotten this issue resolved?
If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.
Thank you for being a valued member of the Microsoft Fabric Community Forum!


Anonymous
Not applicable

Hi @KMSudharsan ,
We wanted to follow up since we haven't heard back from you regarding our last response. We hope the issue has been resolved.If the answer resolved your query, please mark it as "Accept as Solution" and select "Yes" if it was helpful. Still needed any further assistance, feel free to reach out.

Thank you for being a valued member of the Microsoft Fabric Community Forum!

Anonymous
Not applicable

Hi @KMSudharsan ,
I just wanted to kindly follow up to see if you had a chance to review the previous response provided by community members.  If our answer addressed your query, please Accept the answer so that it will be helpful to others to find it quickly.
Thank you for being a part of Microsoft Fabric Community Forum!

Regards,
Pallavi.

shobhit1117
Frequent Visitor

Can you please help in answering the below question so that i can guide you the best possible answer.

- Are you using power bi per user licence or Premium capacity.

-What type of data source.

We are using Premium capacity and ODBC data source

 TemplateMessage: Mashup expression evaluation error. Reason: DataSource.Error.
	Line 881: GatewayPipelineErrorCode=DM_GWPipeline_Gateway_MashupDataAccessError
	Line 884: Reason=DataSource.Error
	Line 889: MessageParameters=[ODBC;<ccon>An error occurred but no ODBC error information was available.</ccon>]
	Line 891: [1]Microsoft.PowerBI.DataMovement.Pipeline.Diagnostics.GatewayPipelineWrapperException: Substituted: MashupValueException:<ccon>ODBC: An error occurred but no ODBC error information was available.</ccon>
	Line 893: GatewayPipelineErrorCode=DM_GWPipeline_UnknownError
	Line 896: InnerMessage=<ccon>ODBC: An error occurred but no ODBC error information was available.</ccon>
	Line 897: InnerToString=<ccon>Microsoft.Data.Mashup.MashupValueException (0x80004005): ODBC: An error occurred but no ODBC error information was available.
Search "error" (1669 hits in 12 files of 29 searched) [Normal]
FarhanJeelani
Super User
Super User

Hi @KMSudharsan ,

The issue you're facing with intermittent refresh failures on Power BI Server via an ODBC connection can stem from several factors. Let’s address your concerns systematically and provide solutions.

1. Possible Causes for Random Refresh Failures

a) ODBC Connection Stability

  • Driver Limitations: ODBC drivers sometimes have limitations with concurrent or repeated requests.
  • Timeouts: The ODBC connection might time out due to server overload or poor network connectivity.

b) Data Source Limitations

  • Your data source might have constraints on the number of simultaneous queries or connections it can handle.

c) Power BI Server Settings

  • Frequent refreshes may cause resource contention, especially if multiple datasets are being refreshed concurrently on the same server.

d) Refresh Queue

  • Back-to-back refreshes for the same dataset could collide, as Power BI Server places refresh requests in a queue, and conflicts may arise if one is still running while another starts.

e) Data Volume or Query Complexity

  • Large datasets or complex queries could sometimes lead to intermittent timeouts, especially if the data source server is under heavy load.

2. Power BI Server Refresh Limitations

a) Back-to-Back Refreshes

  • While Power BI does not impose a hard restriction on how frequently you refresh, practical limitations arise from:
    • Dataset size: Larger datasets require more time to process.
    • Query complexity: Intensive queries may lock resources.
    • Concurrency: Server resources are shared across all scheduled and on-demand refreshes.

b) Minimum Time Between Refreshes

  • While no official minimum exists, it’s advisable to allow sufficient time between refreshes for:
    • Data source recovery.
    • Query execution to complete.
    • Resource availability on Power BI Server.

3. Recommendations and Solutions

a) Optimize Data Queries

  • Simplify queries used in the dataset.
  • Minimize transformations in Power Query and move them to the data source if possible.

b) ODBC Driver Optimization

  • Ensure you are using the latest version of the ODBC driver.
  • Check the driver settings for any timeout configurations and increase them if needed.
  • Verify the driver’s compatibility with your data source.

c) Schedule Refreshes Appropriately

  • Avoid back-to-back refreshes. Introduce a buffer time between refreshes, allowing one refresh to complete before triggering another.

d) Monitor Server Performance

  • Use the Performance Monitor in Power BI Report Server to identify bottlenecks during refreshes.
  • Look for high memory or CPU usage, which might indicate server overload.

e) Retry Logic

  • Enable retry logic in the Power BI Gateway settings (if applicable).
  • This allows failed refreshes to retry automatically after a brief interval.

f) Reduce Data Set Size

  • Use incremental refresh to limit the amount of data being processed during refreshes.
  • Split large datasets into smaller, manageable datasets if possible.

g) Check Logs for Failures

  • Review the Power BI Server logs (RSPowerBI or RSLog logs) to identify the exact cause of failure.
  • Common errors include:
    • Timeout errors.
    • Connection interruptions.

h) Connection Pooling

  • Enable connection pooling in the ODBC driver settings to reduce the overhead of creating new connections for every refresh.

4. Alternative Approaches

a) Use a Data Gateway

  • If the data source is external, consider using an On-Premises Data Gateway for more robust handling of refreshes.

b) Stagger Refresh Times

  • If multiple datasets are being refreshed, stagger the refresh schedules to avoid server overload.

c) Error Handling

  • Implement error-handling mechanisms to capture failures and alert administrators for immediate resolution.

5. Testing Suggestions

  1. Test the refresh process manually for multiple attempts to identify the failure point.
  2. Simulate heavy load on the data source to see if it impacts refresh stability.
  3. Try connecting via a different driver or data source method to rule out driver-related issues.

Summary

To prevent random refresh failures:

  • Optimize queries and drivers.
  • Introduce a buffer between refresh attempts.
  • Monitor server performance and logs.
  • Stagger refresh schedules and reduce dataset size where possible.

If the problem persists, investigate the server logs or escalate to Microsoft support with the error details. Let me know if you need help with any specific part of the troubleshooting process!

 

Please mark this as solution if it helps you. Appreciate Kudos.

I could not able to find gatewayconfig.json file in my "C:\Users\*****\AppData\Local\Microsoft\On-premises data gateway"
Is there any way to fix this issue?
I am able refresh sometimes, but fails at sometime. 
I use same ODBC driver for both Power BI desktop and Server. Refresh works fine in desktop.

Anonymous
Not applicable

Hi @KMSudharsan ,

Thank you for the helpful response @FarhanJeelani 
Uninstall and  reinstall the On-Premises Data Gateway,this might help you to recreate the necessary configuration files.

If still facing difficulty in resolving the issue, please feel free to reachout.

If this post helps, please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.
Thank you for being a part of Microsoft Fabric Community Forum!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors