Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Error: Embed URL is invalid for this scenario. Please use Power BI REST APIs to get the valid

Need help..! I have implemented powerbi-javascript embedded custmization with Angular 9 web app. I can be able see dashboard charts view, but whenever I change embedUrl ( which is working in browser...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Anonymous 

    The embed URL you have shown doesn't look valid.
    Did you generate it using the REST API?  https://docs.microsoft.com/en-us/rest/api/power-bi/reports/getreportsingroup

    You should see something much shorter + without the query string parts like (autoAuth=true & pageName=ReportSection4).
    I dont think selecting an initial page via the embed URL is supported.

    Example URL from the Docs:

    https://app.powerbi.com/reportEmbed?reportId=5b218778-e7a5-4d73-8187-f10824047715&groupId=f089354e-8366-4e18-aea3-4cb4a3a50b48