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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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

Top Solution Authors