Forum Discussion
Problem embedding report - "This content isn't available"
- 8 years ago
I'm going to wrap this up by clarifying my use case and explaining what I did to work around my issue. First of all, I'm following the "User Owns Data" scenario, or "embedding for your organization" depending on what documentation you're looking at. The goal is not to use a master account to authenticate, but rather for the end user to authenticate with his/her account and then be presented with the content that they are authorized to view. I'm building a custom portal to improve upon the user experience provided by powerbi.com, and adding metadata features in the process.
The main factor with my issue turned out to be the fact that I was opening a new browser window in order to display the embedded report/dashboard. I never discovered why that poses a problem, but I have successfully worked around the issue by instead displaying the embedded content in an overlay that takes up the full browser window. The only properties that I need to pass into the config object to the powerbi.embed function are type, accessToken, and embedUrl. I don't have to deal with embed tokens at all to make this work.
I will also mention that I had a very frustrating experience dealing with Microsoft tech support on this issue, so I'm happy to clarify anything about my solution for people that might stumble upon this post. I opened a support incident through my MSDN account, and ended up spending many hours over the course of several weeks providing diagnostic information to the Power BI product team. They really never did anything for me except ask me to jump through lots of hoops, which I did, and it never got me an answer to my question about why I got an error when embedding the content in a new browser window.
Good catch on the link above - just fixed it.
Thanks for elaborating on your setup. Just a heads up: I've been told by MS representatives as recently as two weeks ago that the model you describe (Power BI free users being able to view content embedded in a third-party app) is being phased out and will stop working entirely sometime in mid-2018. The closest evidence I can find to support this in the MS documentation is here, under "Share content with Power BI FREE users outside PowerBI.com and embed in other SaaS applications": https://docs.microsoft.com/en-us/power-bi/developer/embedded-faq
However, since this is an ongoing change, it's possible you may get a different answer (in fact, I received a couple of conflicting reports before we finally found a method that worked for us). If they confirm the above, let me know and I'll share how we addressed the issue.
I'm going to wrap this up by clarifying my use case and explaining what I did to work around my issue. First of all, I'm following the "User Owns Data" scenario, or "embedding for your organization" depending on what documentation you're looking at. The goal is not to use a master account to authenticate, but rather for the end user to authenticate with his/her account and then be presented with the content that they are authorized to view. I'm building a custom portal to improve upon the user experience provided by powerbi.com, and adding metadata features in the process.
The main factor with my issue turned out to be the fact that I was opening a new browser window in order to display the embedded report/dashboard. I never discovered why that poses a problem, but I have successfully worked around the issue by instead displaying the embedded content in an overlay that takes up the full browser window. The only properties that I need to pass into the config object to the powerbi.embed function are type, accessToken, and embedUrl. I don't have to deal with embed tokens at all to make this work.
I will also mention that I had a very frustrating experience dealing with Microsoft tech support on this issue, so I'm happy to clarify anything about my solution for people that might stumble upon this post. I opened a support incident through my MSDN account, and ended up spending many hours over the course of several weeks providing diagnostic information to the Power BI product team. They really never did anything for me except ask me to jump through lots of hoops, which I did, and it never got me an answer to my question about why I got an error when embedding the content in a new browser window.