Forum Discussion
pellea
8 years agoRegular Visitor
Embed report with load()/render() error: "Report or group ID do not match loaded configuration"
Hello, I successfully displayed an embed report using the load()/render() functions. But when I specify a configuration object in the render() method, I get this error: "Report or group ID do not...
v-jiascu-msft
8 years agoMicrosoft Employee
Hi Pellea,
Just see from the code, you didn't even make changes of the config. How can the IDs be different? Can you share the customized config? BTW, I tested it successfully.
>>>Please note, reportId & embedUrl properties MUST remain the same.
Best Regards,
Dale
pellea
8 years agoRegular Visitor
That's a good question :)
BTW, the error message is not helpful (I'm pretty sure the error is elsewhere).
Here is the config I'm using:
config = {
type: 'report',
embedUrl: "@Model.EmbedUrl",
tokenType: models.TokenType.Embed,
accessToken: "@Model.Token",
id: "@Model.Id",
permissions: permissions,
settings: {
filterPaneEnabled: false,
navContentPaneEnabled: false,
layoutType: models.LayoutType.Custom,
customLayout: {
displayOption: models.DisplayOption.FitToPage,
}
}
};