Forum Discussion
Generate Tokek Embedded - Error: proxy model should include the core model ID
- Anonymous1 year ago
Hi marcio_fornari,
Thanks for the update, glad to hear you figured it out!
Yes, this behavior makes sense. When generating the embed token using a master user, there can be permission issues, especially with composite models and RLS across different workspaces. That’s why using a service principal (which is the recommended approach for embedding) worked for you.
Regarding your question : yes, you can skip RLS when using a service principal. To do that, simply don’t include the "identities" section in your GenerateToken request. If you don't pass any identities, Power BI won't apply RLS, and the service principal will see all the data in the report.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Regards,
B Manikanteswara Reddy
Hi marcio_fornari ,
Thank you for reaching out to Microsoft Fabric Community.
It looks like the issue you're facing is very similar to one that another user encountered earlier. That issue has been resolved, and the solution might be helpful in your case as well.
Please refer to the post linked below for the full explanation and steps:
Solved: Re: Error: Generate token request for proxy model ... - Microsoft Fabric Community
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Regards,
B Manikanteswara Reddy
- marcio_fornari1 year agoResolver I
Hi, not working for me.. I tried it, receiving same error, see my post.
- Anonymous1 year agoNot applicable
Hello marcio_fornari ,
You're getting the error "Generate token request for proxy model should include the core model ID" because your report is based on a semantic model (proxy dataset) that connects to other datasets with RLS, possibly from different workspaces. This setup is known as a composite model or DirectQuery for Power BI datasets.
To fix this when generating the embed token:
- Make sure you include all related dataset IDs in your request — both the report's own dataset (proxy model) and the connected core datasets.
- Most importantly, you need to add these two properties to the proxy model dataset in your request:
- "isEffectiveIdentityRequired": true
- "isEffectiveIdentityRolesRequired": true
You can refer the below document as reference.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Regards,
B Manikanteswara Reddy
- marcio_fornari1 year agoResolver I
Hi, now the report is open, but i got this error on my visuals