Forum Discussion

mikihiir's avatar
mikihiir
Helper III
9 years ago
Solved

custom visual is allways not loading in power bi javascript api

I have troubles sometimes loading my reportis with power bi javascript api.

Sometimes they do open.

 

 

WindowsPostMessageProxy message shoud allway be object type, sometimes it is a string. there lies my problem. Why is it string?

And when it is tring i get this warning and report is not loaded.

 Any ideas ?

 

 

 

  • mikihiir,

     

    Based on my research, you could try to insert a code snippet to parse the JSON string.

    if (typeof message === "string") {
        console.log("parse a JSON string");
        // message = eval('(' + message + ')');
        message = JSON.parse(message);
    }

1 Reply

  • v-chuncz-msft's avatar
    v-chuncz-msft
    Community Support

    mikihiir,

     

    Based on my research, you could try to insert a code snippet to parse the JSON string.

    if (typeof message === "string") {
        console.log("parse a JSON string");
        // message = eval('(' + message + ')');
        message = JSON.parse(message);
    }