Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have a report that if I open normally from app.powerbi.com everything works
If I embed the report I get this client error :
An unexpected error has occurred.. Unable to render a visual report titled: undefined"
Message
DatabaseDoesNotExistOrUserDoesNotHavePermission
What can I check ?
Thanks in advance
How did you embed the report? Which embed link did you use?
The report I'm trying to embed is in one workspace while the dataset is in another workspace
to create the embedtoken I use this piece of code :
on the v2WsID there are the two workspace ID
var tokenRequest = new GenerateTokenRequestV2(reports: new List<GenerateTokenRequestV2Report>() { new GenerateTokenRequestV2Report(report.Item1) },
datasets: v2DatasetID.Select(datasetId => new GenerateTokenRequestV2Dataset(datasetId.ToString())).ToList(),
identities: v2rls,
targetWorkspaces: v2WsID
);
// Generate Embed token
var getToken = client.EmbedToken.GenerateToken(tokenRequest);
My config client side is :
var config = {
type: pbiType,
tokenType: pbiModels.TokenType.Embed,
//theme: { themeJson: getCurrentTheme() },
accessToken: options.TOKEN,
datasetBinding: {
datasetId: options.DATASETID,
},
embedUrl: options.EMBEDURL,
id: options.IDREPORT,
layoutType: models.LayoutType.Custom,
customLayout: {
displayOption: models.DisplayOption.FitToPage
},
permissions: pbiModels.Permissions.All,
viewMode: pbiModels.ViewMode.View,
settings: {
panes: {
filters: {
visible: false
},
pageNavigation: {
visible: false
}
}
},
};
Embed url generate is : https://app.powerbi.com/reportEmbed?reportId=9791f758-966c-4910-b394-3504eb9d9b9f&groupId=911bc871-5...
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 9 | |
| 8 | |
| 8 |