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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Inactivity timeout

Hi all,

 

After just using the report for 5-10 min I get this error on my embedded report.

 

I think this is an inactivity timeout issue. Can anyone help on this? How can I increase the timeout period or if I can simply refresh the token automatically once it timesout.

 

Himanshu_13_0-1617788659453.png

 

Regards,

Himanshu

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

AFAIK, get embed token API will also provide the expiry date time in the response results.
In my opinion, I'd like to suggest you do add a global variable to store the token and expired DateTime.
Then you can modify get token processing to check the variable and switch to get the current token or invoke the API to generate token.

Embed Token - Reports GenerateTokenForCreateInGroup (Power BI Power BI REST APIs) | Microsoft Docs

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @Anonymous,

What type of content are you used on these visuals? Can you please share more detailed information?

How to Get Your Question Answered Quickly 

BTW, you can also take a look at the following link about common refresh scenarios in power bi service:

Troubleshooting refresh scenarios - Power BI | Microsoft Docs

Regards,
Xiaoxin Sheng

Anonymous
Not applicable

I have a report with sql server as my source(import mode) and I've embedded the report to my current running application. But after like say 10 min the report gets time out and show the error thats in the screenshot. 

 

I dont understand how to rectify this issue. Please guide.

 

I think it has to do with the embed token timeout but not sure how to check that and where.

 

Regards,

Himanshu

Anonymous
Not applicable

Hi @Anonymous,

AFAIK, get embed token API will also provide the expiry date time in the response results.
In my opinion, I'd like to suggest you do add a global variable to store the token and expired DateTime.
Then you can modify get token processing to check the variable and switch to get the current token or invoke the API to generate token.

Embed Token - Reports GenerateTokenForCreateInGroup (Power BI Power BI REST APIs) | Microsoft Docs

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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