Forum Discussion

werder's avatar
werder
New Member
9 years ago
Solved

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:1007:6989)
at da (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.dependencies.externals.bundle.min.js:1007:7400)
at Ba (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.dependencies.externals.bundle.min.js:1007:11277)
at Aa (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.dependencies.externals.bundle.min.js:1007:10990)
at za (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.dependencies.externals.bundle.min.js:1007:10881)
at Ca (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.dependencies.externals.bundle.min.js:1007:11474)
at Da (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.dependencies.externals.bundle.min.js:1007:11619)
at a (https://app.powerbi.com/13.0.1700.1312/scripts/powerbiportal.dependencies.externals.bundle.min.js:1007:195)
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

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

     

2 Replies

  • Eric_Zhang's avatar
    Eric_Zhang
    Microsoft 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"

     

    • werder's avatar
      werder
      New Member

       

      Hi

       

      Sorry for the delay answer. it worked! Thanks

       

      Thanks