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
Anonymous
Not applicable

Embedding Power BI Report with MySQL using service Principal

Hello,

 

I am embedding Power BI Report to the website using MySQL Database residing in AWS Cloud.

 

I am getting the error below:-

 

400 Bad Request: Error while retrieving embedded token.

Creating an embedded token for accessing the dataset requires an effective identity to be provided.

 

Does anyone has the idea to solve this issue.

 

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Thanks for reaching out to us.

Please troubleshoot according to the articles below,

Troubleshoot Power BI embedded analytics application - Power BI | Microsoft Docs

Best practices for faster performance in Power BI embedded analytics - Power BI | Microsoft Docs

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hello,

 

I couldn't find the solution.

I have some observations if I create a report from a dataset of MySQL and embed it using service principal, I get an error message as below.

 

400 Bad Request: Error while retrieving Embed token
Bad Request: {"error":{"code":"InvalidRequest","message":"Creating embed token for accessing dataset {dataset id} requires effective identity to be provided"}}
RequestId: 2fabd77d-2d56-4479-a625-1d7f0959c65a

 

And if I run the get dataset API with the mentioned dataset (it requires effective identity)

 

{
"isRefreshable": true,
"isEffectiveIdentityRequired": true,
"isEffectiveIdentityRolesRequired": true,
"isOnPremGatewayRequired": true,
}


And if I upload a sample report from the same workspace with a different dataset it doesn't require effective identity. Refer below.


{

"isRefreshable": true,
"isEffectiveIdentityRequired": false,
"isEffectiveIdentityRolesRequired": false,
"isOnPremGatewayRequired": true,
"targetStorageMode": "Abf",

}
Also, I have tried to do it with Row Level Security. It still doesn't work.

Do we need to enable some settings in the Power BI Desktop? 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors