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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
nag_via
Frequent Visitor

Power BI & Databricks - Close active connection

Hello,

 

We are currently using Power BI in import mode with databricks. Every morning, my semantic model connects to databricks sql warehouse and import the datas. The databricks SQL warehouse is setup to auto stop after 5 minutes of inactivity.
According to my databricks colleague, after the refresh, the power bi connection to databricks stays active for 1 hour so the databricks can't stop. 
I looked at the databricks connector in Power BI but I don't see anything that could help me like timeout or something else. Does any one has this problem or an idea to solve this ?

 

Regards,

1 REPLY 1
v-zhengdxu-msft
Community Support
Community Support

Hi @nag_via 

 

You can use the STARTMENT_TIMEOUT parameter. The configuration parameter sets a timeout value in seconds. Any Databricks SQL statement with a wall clock run time exceeding the value is timed out.

You can set this parameter at the session level using the SET statement and at the global level using SQL configuration parameters or SQL Warehouses API.

Set a timeout value in seconds between 0 and 172800 seconds (2 days). Any Databricks SQL statement that has a wall clock execution time exceeding the set value is halted.

 

Here is the link of the details:

STATEMENT_TIMEOUT - Azure Databricks - Databricks SQL | Microsoft Learn

 

If the above one can't help you, could you please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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