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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
werder
New Member

Custom Streaming Tile -moment construction falls back to js Date

Hi Guys

 

I'm experimenting with creating live tiles directly into a dashboard with streaming datasets. But if i stream a datetime field, the tile is not refreshed and i got this in edge inspector:

 

"

Deprecation warning: moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.
Error
at Anonymous function (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.dependencies.externals.bundle.min.js:10...)
at da (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.dependencies.externals.bundle.min.js:10...)
at Ba (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.dependencies.externals.bundle.min.js:10...)
at Aa (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.dependencies.externals.bundle.min.js:10...)
at za (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.dependencies.externals.bundle.min.js:10...)
at Ca (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.dependencies.externals.bundle.min.js:10...)
at Da (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.dependencies.externals.bundle.min.js:10...)
at a (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.dependencies.externals.bundle.min.js:10...)
at a (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.dependencies.bundle.min.js:66:16900)
at i (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.common.bundle.min.js:12:28610)
powerbiportal.dependencies.externals.bundle.min.js (1007,6823)
SEC7131: Security of a sandboxed iframe is potentially compromised by allowing script and same origin access.

"

 

I'm using  this in c# to send the value: "DateTime.UtcNow.ToString();";

 

If i send only the field with the value that i want the tile is refreshed as expected!

 

I'm doing something that it's not supposed to or is a bug with powerbi?

 

Thanks

Helder

1 ACCEPTED SOLUTION
Eric_Zhang
Employee
Employee

@werder

 

I can reproduce that issue when sending a date which is not in ISO 8601 (2017-03-08T06:02:42.046Z) . Try to recreate a new streaming dataset and change the C# code a little bit.

DateTime.UtcNow.ToString("s") + "Z"

 

View solution in original post

2 REPLIES 2
Eric_Zhang
Employee
Employee

@werder

 

I can reproduce that issue when sending a date which is not in ISO 8601 (2017-03-08T06:02:42.046Z) . Try to recreate a new streaming dataset and change the C# code a little bit.

DateTime.UtcNow.ToString("s") + "Z"

 

 

Hi

 

Sorry for the delay answer. it worked! Thanks

 

Thanks

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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