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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
xli629b
Helper II
Helper II

Intermittent JS errors (Cannot read property 'call' of undefined) with embedding

Sometimes, when a report is embedded with the Power BI JS API, the report enters a loading state (flashing graph icon) and never loads, and there is a JS error from Power BI Embedded (see below).
  • The issue happens occasionally and isn't very predictable. I think it's more likely to happen when a report is added or deleted, but it's unclear.
  • Once it happens, it often continues to happen, but clearing all cached data and cookies for windows.net and powerbi.com makes it go away.
  • The error is from minified JS and
 
https://app.powerbi.com/13.0.11747.315/scripts/reportembed.externals.bundle.min.js
 
reportembed.externals.bundle.min.js:1324 TypeError: Cannot read property 'call' of undefined

    at r (reportEmbed.min.js:1)

    at reportEmbed.min.js:1

    at t.invoke (reportembed.externals.bundle.min.js:1197)

    at e.run (reportembed.externals.bundle.min.js:1197)

    at reportembed.externals.bundle.min.js:1197

    at t.invokeTask (reportembed.externals.bundle.min.js:1197)

    at e.runTask (reportembed.externals.bundle.min.js:1197)

    at y (reportembed.externals.bundle.min.js:1197)
1 ACCEPTED SOLUTION

Hi @xli629b ,


Sorry for that, We cannot reproduce the issue here and also not found an effective solution. We suggest you to open a ticket here for help if you are a pro user: https://powerbi.microsoft.com/en-us/support/

 

Support Ticket .gif


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
xli629b
Helper II
Helper II

After forcing it to load 13.0.11747.315/scripts/reportEmbed.js instead of 13.0.11747.315/scripts/reportEmbed.min.js, I saw that the error came from this line:

 modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);


It tried to load modules[747] and modules[759], which are not defined in the array.

So it seems this is a problem with async module loading, and some modules are not loaded yet when they are required. I saw this related discussion: https://github.com/webpack/webpack/issues/5429 

This happens unpredictably, preventing the report from loading, which makes the embedded reports very unreliable. Any idea if the module loading can be fixed?

Hi @xli629b ,


Sorry for that, We cannot reproduce the issue here and also not found an effective solution. We suggest you to open a ticket here for help if you are a pro user: https://powerbi.microsoft.com/en-us/support/

 

Support Ticket .gif


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors