Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi,
I'm trying to create a test embedded location and tried running the sample app from Guy in a Cube.
I'm having a few problems and get this error when I try to run it. Does anybody know what that means?
Thanks in advance
Could somebody also kindly advise which username and role goes in below?
Code below
Thanks
Solved! Go to Solution.
Hi @lherbert501 ,
I tried to fix it myself, but it seems that this is because some of the content in the predefined configuration file before the code is outdated. If you want to modify it, you may not only need to modify the content in the screenshot, but also go back here to modify it:
I'm not sure how the original author defined it, but I saw that this document was published 4 years ago:
So it's very likely that some of the content is outdated. I think the best way is to find the original author and ask him to update it.
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @lherbert501 ,
About the first question, have you created a data source connection using one of the gateways to the semantic model of the report you need to embed? And have you change contents here?
And about the second question, based on the screenshot you provided, it looks like you are trying to embed a report with RLS applied. So for the parameter Role, fill in the name of the RLS you created:
As for the parameter username, it depends on whether you are implementing a static RLS or a dynamic RLS.
If it is a static RLS, then you can give it any string:
But in the case of a dynamic RLS, the role of username is to pass a parameter value to your previously defined RLS role, so here you need to give username a specific string, i.e., what you want your RLS to be equal to.
You can refer to the following two documents, which explain it in more detail:
https://learn.microsoft.com/en-us/power-bi/developer/embedded/cloud-rls
https://learn.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-token#example-of-generating...
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-junyant-msft ,
Thankyou for your reply.
Could you please help me with the gateway aspect, as I think its the only thing left that's preventing it.
I have the gateway connection set up for the report that works fine and refreshes fine as below. Which bit do I change in the code?
I was unsure if the code below needed to stay commented out
Thanks
Hi @lherbert501 ,
I tried to fix it myself, but it seems that this is because some of the content in the predefined configuration file before the code is outdated. If you want to modify it, you may not only need to modify the content in the screenshot, but also go back here to modify it:
I'm not sure how the original author defined it, but I saw that this document was published 4 years ago:
So it's very likely that some of the content is outdated. I think the best way is to find the original author and ask him to update it.
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
90 | |
87 | |
84 | |
68 | |
49 |
User | Count |
---|---|
131 | |
111 | |
96 | |
71 | |
67 |