Forum Discussion
Some embedded tiles doesn't load, others load fine
Hi folks,
I debugged a little bit of the issue, and found where the error comes from:
The iframe of the embedded Power BI tile has an unhandled JavaScript error in the powerbivisualrenderer.js file. In the embeddingRenderTileById function it runs an AJAX get request to get the tile data, and its success event handler is run - so far so good. The result of the request is a JSON object, which is parsed and sent to the renderTitles function. This function parses the configuration data of the tiles, and throws an unhandled exception as the config property of the tile object is undefined.
So I took a look at this object and found that quite a few important properties are missing for those tiles, which fail to get rendered:
config
tileDataBinaryBase64Encoded
tileDataUpdatedTime
Here is a screeen shot from the developer toolbar from another request, when the tile was successfully loaded. When it fails, the highlighted items are missing. Then the PBI code attempts to use them and obviously it throws an error.
So no error is thrown by Power BI, but an unhandled JavaScript exception is thrown. The data of the tile is not returned by the REST API call. I'm puzzled. It seems to be a bug in Power BI.
Any idea?
- Anonymous10 years agoNot applicable
And just to add some salt to the situation, I found that none of the recently created tiles work for me. None. I created a few new ones from scratch for a brand new account, they don't work either. I wonder if there is anybody who has a recently created tile working when embedded.
Can anyone confirm?
- Mwaser10 years agoFrequent Visitor
Yeah, I can confirm. I've been beating my head against a wall with this. I've been trying to embed tiles into a UWP app and it's been working perfectly for the single sample tile I can find on the Internet and not working for anything I create . . . .
Can anyone *PLEASE* give me access to some old/pre-bug non-confidential samples? I desperately need them for a sample program. Thanks!- Anonymous10 years agoNot applicable
It is good to know that this bug doesn't occur only for me. It would be great to hear something about its fixing. If it is really generic as it looks, then it makes this feature of Power BI only a ghost. And completely useless...
- algattik10 years agoMicrosoft Employee
Hello, I did not manage to reproduce your issue. Here are the steps I took.
- Logged into https://dev.powerbi.com/apps and registered a new application of type Server-side Web app with Redirect URL http://localhost:13526/Redirect
- In Visual Studio, compiled the project https://github.com/Microsoft/PowerBI-CSharp/tree/master/samples/webforms/embed-a-tile-into-an-app (entering my Client ID and Client Secret from step above).
- In Power BI Desktop, generated and uploaded a new report (since you report that the issue affects newer reports only).
- In Visual Studio, ran the project into Internet Explorer.
- In IE, followed the steps on the page. I was able to embed the report successfully in the IFRAME. The link looks like https://msit.powerbi.com/reportEmbed?reportId=fbba0813-cf35-4004-97c6-825c45869024
- Anonymous10 years agoNot applicable
Hello algattik,
Thank you for your help too. As you can see above, the issue turned out to be related to the type of tile being embedded. My solution works fine with the visual tiles, but it fails using report type tiles.