cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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 ) 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,

1 ACCEPTED SOLUTION
MattCalderwood
Responsive Resident
Responsive Resident

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

 

View solution in original post

3 REPLIES 3
MattCalderwood
Responsive Resident
Responsive Resident

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

 

Anonymous
Not applicable

Thank you @MattCalderwood

 

I removed query string parts (autoAuth=true & pageName=ReportSection4). and it works fine.

 

 

parry2k
Super User
Super User

@Anonymous  moved to developer forum






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.





Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors