Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
mohammedniyas
New Member

Failed to execute 'postMessage' on 'DOMWindow'

I'm trying to create a custom visual. I'm getting following errors in the console while starting the project. 

 

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://app.powerbi.com') does not match the recipient window's origin ('null').

 

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://app.powerbi.com') does not match the recipient window's origin ('null').

 

Can anyone help me to understand this issue here?

2 REPLIES 2
v-viig
Community Champion
Community Champion

Hello @mohammedniyas

 

Power BI create a special isolation that protects the main window against custom visuals.

The isolation is implemented by using sandbox mode of iframe and cloning the windows object.

 

Could you please clarify the reason of using postMessage?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Anonymous
Not applicable

Hello @v-viig

I want to listent some event in parent window when we click some button in power-bi app can u pls tell me how can i achieve this.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors