Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

0

embed power bi dashboard, some JS error (refreshusermetadata) in console, but report works fine.

Hi,

    I have embedded the powe BI report to our web application succesfully, now the report can be displayed correctly, but the dashboard report can be displayed with some JS error.

js2.pngjserror1.png

 

so did I miss something about embedded the dashboard report?

 

 

Thx.

Status: Delivered

delivered the cause

Comments
v-cazheng-msft
Community Support
Status changed to: Investigating

Hi @gangli ,

 

The api https://wabi-us-central-b-primary-redirect.analysis.windows.net/powerbi/metadata/refreshusermetadata is used to retrieve the metadata of a user generally divided these info displayed in the screenshot.

vcazhengmsft_0-1651037955308.png

 

To successfully invoke ths api, we need provide Bear Token/access token but not EmbedToken. Embed Token is the token generally used in Embed environment and is used to identify embed account’s permissions to a specific content(report, dashboard, etc). So with Embed Token, you don’t have problem to embed content. If use it to retrieve user metadata, it will fail for insufficient permissions but should not impact too much of your embed operations.

vcazhengmsft_1-1651037955312.png

 

Best Regards,

Community Support Team _ Caiyun

v-cazheng-msft
Community Support
Status changed to: Delivered

delivered the cause