Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Error Details: 404 Not Found: Error while retrieving Embed token Not Found: {"error":{"code":"PowerBIEntityNotFound","pbi.error":{"code":"PowerBIEntityNotFound","parameters":{},"details":[],"exceptionCulprit":1}}} RequestId: a449ea99-7ba2-42a2-8044-5e060cf86a8c
when i use the python sdk, raise this error.
how can I finish it?
Hi @daitianjun ,
Thanks for reaching out to Microsoft Fabric Community and for sharing the related thread.
In most cases, PowerBIEntityNotFound is not caused by the SDK itself but by a mismatch between the identity used and the Power BI resources being referenced.
At this point, it would be helpful to confirm whether the same identity can successfully list the report and dataset using the Power BI REST APIs for that workspace. If they do not appear there, the embed token call will continue to return this error even if the IDs look correct.
It would also help to know whether you are using a service principal or a user account, and to confirm that the workspace is not My workspace and belongs to the same tenant used for authentication.
If this still cannot be resolved, raising a support ticket would be the best next step so the product team can investigate further.
Hope this helps. Please reach out for further assistance.
Thank you.
PowerBIEntityNotFound means the SDK is calling “generate embed token” for a workspace/report/dataset that Power BI can’t find for the identity you’re using. It’s usually one of these:
Wrong IDs
Double-check you’re using the correct:
group_id (workspace)
report_id
dataset_id (or semantic model id)
A common mistake is mixing IDs from different workspaces/tenants.
2. Service principal/user doesn’t have access
The identity used by the Python SDK must have access to the workspace:
Add it to the workspace as Member/Contributor (Viewer is often not enough for embed scenarios)
And for token generation, it must be able to read the report/dataset.
3. You’re targeting “My workspace”
“My workspace” is not supported for service principal embedding. Use a real workspace.
4. Wrong tenant / authority
If you’re using a service principal, make sure you’re authenticating against the same tenant that owns the workspace.
I think I've checked everything, but it's not working
https://community.fabric.microsoft.com/t5/Service/Error-to-get-EmbedToken-to-embed-report-in-externa...
和这个问题类似,但是没有找到解决方案,有大佬知道吗,我将不胜感激.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 56 | |
| 55 | |
| 36 | |
| 18 | |
| 14 |