Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
daitianjun
New Member

Power BI embedded error

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?

2 REPLIES 2
cengizhanarslan
Impactful Individual
Impactful Individual

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:

 

  1. 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.

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn
daitianjun
New Member

https://community.fabric.microsoft.com/t5/Service/Error-to-get-EmbedToken-to-embed-report-in-externa...
和这个问题类似,但是没有找到解决方案,有大佬知道吗,我将不胜感激.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.