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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
mholloway
Frequent Visitor

AI: StringValueTooLong on Power BI Embedded Report

There is an old, un-solved thread from 2019 on this issue, but this error continues to be thrown by all of my Power BI embedded reports today in the year 2022, so I'm re-posting in the hopes of shedding new light on this, since the previous thread was wholly ignored by any Microsoft staff.

 

The good news is that the error does not appear to prevent the report from successfully embedding.

All the same, every render of an embedded report is throwing this 'AI: StringValueTooLong' error in the console:

 

AI: StringValueTooLong message:"string value is too long. It has been truncated to 1024 characters." props:"{value:Error: Uncaught (in promise): SecurityError: Blocked a frame with origin \https://app.powerbi.com\ from accessing a cross-origin frame.\nError: Blocked a frame with origin \https://app.powerbi.com\ from accessing a cross-origin frame.\n at w.<anonymous> (https://content.powerapps.com/resource/powerbiwfe/scripts/reportEmbed.min.ed670225ef1b3fc0e30b.js:1:...n at https://content.powerapps.com/resource/powerbiwfe/scripts/reportEmbed.vendors.min.0229cae9c738c7d1c8...n at Object.next (https://content.powerapps.com/resource/powerbiwfe/scripts/reportEmbed.vendors.min.0229cae9c738c7d1c8...n at https://content.powerapps.com/resource/powerbiwfe/scripts/reportEmbed.vendors.min.0229cae9c738c7d1c8...n at new e (https://content.powerapps.com/resource/powerbiwfe/scripts/reportembed.externals.bundle.min.3823d8bc5...n at g (https://content.powerapps.com/resource/powerbiwfe/scripts/reportEmbed.vendors.min.0229cae9c738c7d1c8...n at w.isPerfRunnerRe}" 

 

Can we get an update on this, and if there's anything to be done about it? 

Thank you.

 

2 REPLIES 2
mholloway
Frequent Visitor

There were no recent changes to my project; I definitely didn't see this error previously. I'm not sure exactly when this error started showing up but it was within the last few days, and I didn't update my code during that time.

Based on some searching online, it seems pretty clear this error has been thrown in the past due to the dependency ApplicationInsight-JS (https://github.com/microsoft/ApplicationInsights-JS). Apparently when it first caused this error a few years back, it would crash report embedding altogether. I think the embedding-side got fixed so as to not crash, even if the error occurs; on the ApplicationInsight side, apparently some updates 'fixed' it a while ago, but then it reappeared again...and now in 2022 I'm clearly seeing it again. Whatever 'fixes' they are doing don't seem to last very long, it seems! 

v-yiruan-msft
Community Support
Community Support

Hi @mholloway ,

It's a little difficult to find the cause of the problem only with the above error message... Whether your embedded reports get the same error before? Did you make any change on the reports? Any REST API involved in the report?

Best Regards

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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