Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi all
I am facing an error that is "XXXX..sharepoint.com refused to connect." when I am trying to use SharePoint URL to embed those SharePoint documents (pdf, jpg, word) in iframe to display in power bi.
Thanks for your help
Hi , @DongNguyen
As far as I know, the main content of the Power BI service's ability to generate "iFrame" embedded statements for reports is that a link to Power BI reports is built into the iFrame statement, about what you call "embed those SharePoint documents (pdf, jpg, word)" According to my research and understanding of the official documentation, there is no design and introduction to this feature. Did you customize your own iFrame statement? If convenient, can you provide an embedded statement for your "iFrame"?
For more information, you can refer to :
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
What I did is transforming my SharePoint link into HTML (exp: "<iframe src=https://XXXX.sharepoint.com/sites/mktng/Shared Documents/XXXX.pdf style='position: fixed; width: 100%; height: 100%'></iframe>" and then using the HTML content viewer on the Power Bi visual store to view those documents.
Hi, @DongNguyen
As per your description, make sure you allow the ability to Embed content on SharePoint Pages, below article for allowing:
Allow or restrict the ability to embed content on SharePoint pages
How to embed content from other websites in SharePoint Online
Try to go to site settings-> HTML Field Security, check the option "Allow contributors to insert iframes from any domain".
For your reference: Add content to your page using the Embed web part
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi Aniya
I had tried all of your mentioned methods but I still haven't been able to get around this error.
Thank you for your help anw
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.