Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 ) it shows blank page and getting error -
Error: Embed URL is invalid for this scenario. Please use Power BI REST APIs to get the valid
Embed URL:
embedUrl: 'https://app.powerbi.com/reportEmbed?reportId=my-report-id&autoAuth=true&ctid=19ea27d1-****-****-****-63b2c1b248e0&config=eyJjbHVzdGVyVXJsIjoiaHR0cHM6Ly93YWJweyrwerSAiuwyrbSDkyZWRpcmVjdC5hbmFseXNpcy53aW5kb3dzLm5ldC8ifQ%3D%3D&pageName=ReportSection4',
Configuration Object -
const config: any = {
type: 'report',
uniqueId: '40cc1ea5-4ef2-4e63-8c4d-2970a6584be6',
permissions: this.model.Permissions.All,
embedUrl: 'embed-url',
accessToken: 'access-token',
settings: { panes: { filters: { visible: true }, pageNavigation: { visible: false } }
};
Thanks,
Solved! Go to Solution.
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
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
Thank you @MattCalderwood
I removed query string parts (autoAuth=true & pageName=ReportSection4). and it works fine.
@Anonymous moved to developer forum
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
2 | |
2 | |
1 | |
1 |