balajij8
Esteemed Contributor II

Hi Raj,

Query execution on Databricks completed in under a second but the failure is occurring during the client-side result streaming phase between Power BI and Azure Databricks.

When importing Power BI streams result chunks over HTTP connections. If a network hiccup or gateway timeout occurs midway through that data fetch, Power BI attempts to reconnect and resume from the existing position but its interrupted, retried and finally dropped in this case.

You can follow below

1. SQL Warehouse Timeout Settings 

  • You can increase Auto Stop / Session timeout to 2 hours.

2. Incremental Refresh in Power BI

  • Running a full import of 10 million rows on a scheduled basis generally leads to network dropouts in few cases. You can configure Incremental Refresh in Power BI Service so that only new or updated partitions are transferred during daily refreshes.
  • You can use Direct Query with Aggregation Tables in Power BI if feasible.

3. Gateway Timeouts

  • 23 minutes of continuous result fetching can cause issues in few cases. You can avoid gateway and connect directly to Power BI service if feasible. Change the gateway settings for better transfer performance if used.

4. Optimize Databricks Layout

  • You can pre process the query on the Databricks side to maximize fetch speed if feasible. You can setup liquid clustering on tables for best performance.

5. Classic Warehouse

  • Classic SQL warehouses with dedicated compute might provide more stable long running connections in few cases. You can keep size to medium but change type of warehouse to classic pro.