Reply
Highlighted
Frequent Visitor
Posts: 2
Registered: ‎03-06-2017
Accepted Solution

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


Accepted Solutions
Moderator
Posts: 1,975
Registered: ‎03-06-2016

Re: Custom Streaming Tile -moment construction falls back to js Date

[ Edited ]

@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


All Replies
Moderator
Posts: 1,975
Registered: ‎03-06-2016

Re: Custom Streaming Tile -moment construction falls back to js Date

[ Edited ]

@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"

 

Frequent Visitor
Posts: 2
Registered: ‎03-06-2017

Re: Custom Streaming Tile -moment construction falls back to js Date

 

Hi

 

Sorry for the delay answer. it worked! Thanks

 

Thanks