Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi all.
I have a embedded report in my machine and it works perfect but when I pass this code to "Prod", the following error appears.
Everything is good (the credentials and the code). I don't know what is causing that problem
Any idea about this?
Thanks
J.
Hi @Juramirez,
It seems to be that you're using the following sample code to get an embed url from the first available location: options, attribute.
private getEmbedUrl(): string { const embedUrl = this.config.embedUrl || this.element.getAttribute(Embed.embedUrlAttribute); if (typeof embedUrl !== 'string' || embedUrl.length === 0) { throw new Error(`Embed Url is required, but it was not found. You must provide an embed url either as part of embed configuration or as attribute '${Embed.embedUrlAttribute}'.`); } return embedUrl; }
As the error message indicated, you must provide an embed url either as part of embed configuration or as attribute '${Embed.embedUrlAttribute}'.
Regards
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
7 | |
7 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |