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...
  • v-chuncz-msft's avatar
    9 years ago

    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);
    }