Forum Discussion
mikihiir
9 years agoHelper III
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 ?
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-msftCommunity Support
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); }