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
mariobatistella
Helper II
Helper II

Help time of the report embeeded?

Good Morning!
Please I need some help: I have a power bi service report, which I exported as embeeded, to display on a TV!
It works perfectly for about 10mins, then it automatically logs off!
Is that so?
Does it have an internal timer?
Is there any setting so it never logs off?
Thanks!

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @mariobatistella ,

From the official document can see:


Embedding reports requires an access token. The access token has an expiration time, which means that after embedding a Power BI item, you have a limited amount of time to interact with it. To give your users a continuous experience, refresh the access token before it expires.


There are two ways to refresh your access token:

  • Directly using the setAccessToken API
  • Automatically if you're using an Azure AD token for embed for your organization

Additionally, this similar thread has a detailed discussion about this problem. In addition to expired tokens, the problem of caching is also mentioned, you can refer to it.

 

Best Regards,
Community Support Team _ kalyj

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

7 REPLIES 7
mariobatistella
Helper II
Helper II

Good Morning!
Friends, I found something, please, could someone give an opinion on what it could be:

if I put the report path in the browser, it stays all day working normally, without expiring, like this:
https://app.powerbi.com/reportEmbed?........"

now if i put the address inside an html file that is what i need, using the instructions like this
<!DOCTYPE html>
<html>
<head>
...
it expires in 5 to 10 min, then I reload the page, and in 5 to 10 min it expires again, and it stays like this all day...

With this information, could anyone give any advice?

Thanks!

v-yanjiang-msft
Community Support
Community Support

Hi @mariobatistella ,

From the official document can see:


Embedding reports requires an access token. The access token has an expiration time, which means that after embedding a Power BI item, you have a limited amount of time to interact with it. To give your users a continuous experience, refresh the access token before it expires.


There are two ways to refresh your access token:

  • Directly using the setAccessToken API
  • Automatically if you're using an Azure AD token for embed for your organization

Additionally, this similar thread has a detailed discussion about this problem. In addition to expired tokens, the problem of caching is also mentioned, you can refer to it.

 

Best Regards,
Community Support Team _ kalyj

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

 

Good evening!
So, I even understood the above documentation, but my problem is that I have knowledge, and I wanted to know via code, what should I do.., for example, today I display my embedded powerbi in my portal like this:

<iframe title="My Dashboard" width="1140" height="541.25" src="https://app.powerbi.com/reportEmbed?........" frameborder="0" allowFullScreen="true "></iframe>

And now, how and where do I put the instruction so that the frame doesn't automatically expire?

Thanks!

Hi @mariobatistella ,

Have you tried the workaroud:

  • Directly using the  APIsetAccessToken
  • Automatically if you're using an Azure AD token for embed for your organization

You can click on the link to view the steps in detail.

Best Regards,
Community Support Team _ kalyj

Any ideas to help me?
Otherwise I'm going to lose the project!
Thanks!

Good Morning!
Friends, I found something, please, could someone give an opinion on what it could be:

if I put the report path in the browser, it stays all day working normally, without expiring, like this:
https://app.powerbi.com/reportEmbed?........"

now if i put the address inside an html file that is what i need, using the instructions like this
<!DOCTYPE html>
<html>
<head>
...
it expires in 5 to 10 min, then I reload the page, and in 5 to 10 min it expires again, and it stays like this all day...

With this information, could anyone give any advice?

Thanks!

Good Morning!
Thanks for listening!
So, we don't have the knowledge to use Azure AD.
I wanted to try using the APIsetAccessToken as you said, but I don't know how to insert the code into the HTML.
Would you have any material from microsoft, or from someone to study?
Maybe it's the way to work for me, but I don't know how to apply.

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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors