Forum Discussion
Embed report with load()/render() error: "Report or group ID do not match loaded configuration"
Hi pellea,
what will happen if you use
// Embed the report and display it within the div container. var report = powerbi.embed(embedContainer, config);
instead of powerbi.load? This is what the live demo for the SDK is using (https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html).
Hope it helps.
Thanos
The embed method displays correctly the report.
But I would like to use the phased API with preload/load/render.
https://github.com/Microsoft/PowerBI-JavaScript/wiki/Phased-Embedding-API
- Anonymous8 years agoNot applicable
Hi pellea,
what if you use this: var report = powerbi.load(config); insted of yours powerbi.load(embedcontainer, config)?
And this report.render(config); is not needed if you don't modify the configuration settings. You can call just report.render();
Thanos
- pellea8 years agoRegular Visitor
The powerbi.load() methods must have the embedContainer or it's not working.
I need update the configuration later. I removed the code for clarity since the problem is not related with that part.