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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
kohder
Frequent Visitor

Power BI Embedded Report Javascript library: Cannot read property 'accept' of undefined

I need some help in understanding how to debug an error on a report which was embedded using the PowerBI-Javascript.

From documentation provided in order to debug errors the following code can be used:

 

 

// Add a listener to 'error' events
report.on('error', (errorObject) => {
    const err = errorObject.detail;

    // Print error to console
    console.log(`Error occurred: ${err.message}. Detailed message: ${err.detailedMessage}`);
    console.log(err);
});

 

 

 

This functions as expected, but it is producing an IError object with message "Cannot read property 'accept' of undefined" whenever a users interacts with a graph on the report (E.g. clicking on a bar on a barchart). There is however no detailedMessage provided.

What could this message be referring to or where should I start my investigation?

0 REPLIES 0

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors