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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
KasperJ90
Helper III
Helper III

PowerBI dataset used in Excel, but session expires

Hi,

 

We use a PowerBi dataset in Excel for daily work meaning users have the Excel file open all day, but if they do not use the file for a period of time they get below error when they are using the file:

KasperJ90_1-1666957029579.png

Then the user have to press OK before they can work again in the file.

 

What can we do here to avoid this? 

1 ACCEPTED SOLUTION

Hi , @KasperJ90 

As searched in document, i do not see the session resolution, it just said that:

If you receive a token expired error, it means you haven't recently used the Analyze in Excel feature on the computer you're using. Simply re-enter your credentials, or reopen the file, and the error should go away.

 

For more information, you can refer to :
Troubleshoot connecting Excel to Power BI data - Power BI | Microsoft Learn

But also I find some document about token lifetime, you can try to if it may help you:

Microsoft identity platform access tokens - Microsoft Entra | Microsoft Learn

Configurable token lifetimes - Microsoft Entra | Microsoft Learn

 

Best Regards,

Aniya Zhang

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

View solution in original post

3 REPLIES 3
v-yueyunzh-msft
Community Support
Community Support

Hi , @KasperJ90 

I think the reason for this warning message is because for security reasons, Power BI has a mechanism for AAD tokens to expire periodically every once in a while, because your Excel application needs to use AAD tokens to continuously send query access data to Power BI, and when a certain period of time is exceeded, the token will expire, so this error occurs.

 

Best Regards,

Aniya Zhang

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

Hi @v-yueyunzh-msft 

Can I change this somehow?

I anoys the users when they open the file and make a pivot they can not edit that pivot 30 minutes later.

Hi , @KasperJ90 

As searched in document, i do not see the session resolution, it just said that:

If you receive a token expired error, it means you haven't recently used the Analyze in Excel feature on the computer you're using. Simply re-enter your credentials, or reopen the file, and the error should go away.

 

For more information, you can refer to :
Troubleshoot connecting Excel to Power BI data - Power BI | Microsoft Learn

But also I find some document about token lifetime, you can try to if it may help you:

Microsoft identity platform access tokens - Microsoft Entra | Microsoft Learn

Configurable token lifetimes - Microsoft Entra | Microsoft Learn

 

Best Regards,

Aniya Zhang

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors