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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
VC
New Member

Refresh Failures

Hi,
Facing refresh issues failures in service, the reports are refreshing in the desktop.
Getting below error:
"Cannot execute b__0 after 5 tries. The exception was raised by the IDbCommand interface"

1 ACCEPTED SOLUTION
kc_302
New Member

Hi,
I found a workaround that resolved the issue for me.

In the query code, look for queries having the `[Implementation="2.0"]` parameter:

`= Value.NativeQuery(GoogleBigQuery.Database([Implementation="2.0"])`

and replace them with

`= Value.NativeQuery(GoogleBigQuery.Database()`

by deleting `[Implementation="2.0"]`

It's working fine.

View solution in original post

7 REPLIES 7
v-saisrao-msft
Community Support
Community Support

Hi @VC,

We haven’t heard back from you in a while regarding your issue. let us know if your issue has been resolved or if you still require support.

 

Thank you.

v-saisrao-msft
Community Support
Community Support

Hi @VC,

Checking in to see if your issue has been resolved. let us know if you still need any assistance.

 

Thank you.

v-saisrao-msft
Community Support
Community Support

Hi @VC,

Have you had a chance to review the solution we shared earlier? If the issue persists, feel free to reply so we can help further.

 

Thank you.

v-saisrao-msft
Community Support
Community Support

HI @VC,

Thank you @rohit1991 @FarhanJeelani, for youe insights.

Please review the data source credentials and gateway connection, and confirm whether there have been any recent changes to the data source configuration.

Additionally, here are some helpful reference links to assist you with troubleshooting the issue:

Power BI Service – BigQuery connector failing with... - Microsoft Fabric Community

Troubleshoot refresh scenarios - Power BI | Microsoft Learn

 

Thank you.

kc_302
New Member

Hi,
I found a workaround that resolved the issue for me.

In the query code, look for queries having the `[Implementation="2.0"]` parameter:

`= Value.NativeQuery(GoogleBigQuery.Database([Implementation="2.0"])`

and replace them with

`= Value.NativeQuery(GoogleBigQuery.Database()`

by deleting `[Implementation="2.0"]`

It's working fine.

FarhanJeelani
Super User
Super User

Hi @VC ,

The error “Cannot execute b__0 after 5 tries. The exception was raised by the IDbCommand interface” usually means the service tried to run a query against your data source but couldn’t complete it, and kept retrying. Since your desktop refresh works but service refresh does not, this points to a gateway/credentials/network issue rather than the query itself.

 

What to check and how to fix:

Identify the data source and connection type
What is the data source (SQL Server, Oracle, etc.)?
Are you using an On-premises data gateway? If yes, which edition (Standard or Personal) and is it online?


Check the Power BI refresh history
In the Power BI service, open the failing dataset and view Refresh history.
Copy the full error message and any inner exception details. This often points to a credential or connectivity problem.


Gateway health and connectivity (if on-premises data)
Ensure the gateway is online and the host machine has network access to the data source.
Verify the gateway is up to date with the latest version.
In the gateway config, verify the data source connection is enabled and the credentials are correct.
Check firewall/network rules between the gateway machine and the data source (port opening, VPN, etc.).


Data source credentials in the service
Go to the dataset in Power BI Service > Settings > Data source credentials.
Re-enter credentials and test the connection. Make sure you use the correct authentication type (Windows, Basic, OAuth, etc.) and that the account used by the gateway has access to the data source.


Permissions of the gateway service account
The account used by the gateway must have read access to the data source and any underlying objects (tables, views, stored procedures).
If a service principal or managed identity is used, ensure it has the necessary database permissions.
Timeout and workload considerations
Large or slow queries can time out or fail under service load. If possible, review the query workload:
Simplify heavy queries or break large loads into smaller steps.
If you’re using DirectQuery, consider optimizing the underlying queries or using a cached import where feasible.
Some gateways allow a command/query timeout setting; if available, consider increasing it.


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

rohit1991
Super User
Super User

Hi @VC 

Step 1: Open dataset >> Check Data source credentials.
Step 2: Verify Gateway mapping (if needed).
Step 3: Check Refresh History >> Identify if it’s timeout/permissions.
Step 4: Optimize query / test smaller load.

In most cases, re-configuring the gateway mapping or re-entering credentials in Service resolves this error.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.