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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Rendered event not firing when a report is first loaded

It appears "rendered" event no longer fires when the report is initially loaded.

Switching to a different page within the same report fires "rendered" event, including switching back to the initial page. 

Status: New
Comments
tval
Advocate I

I can confirm this same behavior.  However, it only happens in some reports and not others.  I believe it may be related to custom visuals. In the past, I reported another issue where the "rendered" method was firing before custom visuals were rendered that I don't believe was ever fixed.  Again, this used to work and was broke.  If PBI Embedded is ever going to a great solution they need to do a better job of locking the service down when something is working instead of allowing new bugs to be introduced to support new features that are not needed for our use case. It is difficult to tell our customers that things are broke because MSFT introduced a bug when the whole point of PBI Embedded is that we can brand it and sell it as our own.

 

hawdong
Frequent Visitor

At a minimum, we need to be made aware of what and when something changes in the backend. We had a rude awakening to discover this week some odd behaviors that we were certain did not exist before. Like you, we have customers that are using these embedded reports and we would have to explain to them what's going on. 

Anonymous
Not applicable

Do you have any update on this issue?  

We are also experiencing this, and it is causing a major issue.

 

tval
Advocate I

@Anonymous, I don't have a good update for you.  @hawdong pointed out that it does successfully fire on subsequent pages.  So I coded a temporary workaround to just sleep a sufficient time on the first page to get us by for now.  We weren't able to identify why some reports work and others do not.  There must be some common thread, but not sure what it is at this point.  This is the third "temporary workaround" I've had to implement due to breaking changes with PBI Embedded, so I am getting quite frustrated with the product unfortunately.  FYI, I upgraded to the latest powerbi.js file (2.7.1), and it had no effect.

hawdong
Frequent Visitor

I opened a support ticket 119030719736976 just now. I'll share with everyone once I hear back from them.

Anonymous
Not applicable

Thank you @tval  and @hawdong .

I also managed to do a quick and dirty fix since our client's site was basically down without this functionally.

This may very well result in them dropping the whole project, so I share your concerns.

 

The below lines saved me for now:

//---------Temporary Fix for Rendered event not  being called---------//

//Wait a sec and call the FixIt fuction.

report.on('loaded', function () {

setTimeout(FixIt, 1000);
 });

 

function FixIt() {
Log.log("Fixing");
report.setPage("ReportSection4b029b7a7d89cc34355a");
report.bookmarksManager.apply(defaultBookmark)
.catch(function (errors) {
Log.log(errors);
});
}

hawdong
Frequent Visitor

This issue is now showing up under "awareness" at http://support.powerbi.com

hawdong
Frequent Visitor

Anticipate a fix by COB 3/12/2019

Anticipated fix date.png

hawdong
Frequent Visitor

Also, the engineer that I've been working with on this issue suggested that we up-vote the need for Microsoft team to devise a notification/alert whenever a deployment takes place. As Embedded Report users, knowning when things change is important, so please take a moment to vote at https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/19236475-provide-notification-of-...