Forum Discussion
rkb2023
2 years agoNew Member
Help Needed with Power BI App Owns Data Integration in Node.js App - 400 Bad Request Error
Hello fellow Power BI enthusiasts, I'm reaching out to the community in search of some much-needed assistance with a Power BI integration issue that has been giving me sleepless nights for the past ...
Anonymous
2 years agoNot applicable
Hi rkb2023 ,
According to your description, it seems that you got 400 bad request error when you embed for custom using Node.js method. And it occurred at getting the token. It may be caused by many reasons, please check the following info:
- Incorrect API Call: Ensure that you’re making the correct API call. For example, your calling URL should be “https://api.powerbi.com/v1.0/myorg/GenerateToken” and the dataset and report id should be contained in the body.
Permission tokens needed for embedding a Power BI app - Power BI | Microsoft Learn
- Row-Level Security (RLS): If you’re using the ‘App owns data’ type of embedding and using the Service Principal to generate embedding tokens, then the Identity section of the token request should contain details of the ‘user’ used for Row Level Security purposes.
Solved: 400 Bad Request Error when embedding report - Microsoft Fabric Community
- Headers: Ensure that you have set the correct headers in your API call.
Solved: PowerBI API - 400 Bad Request - On postman - Microsoft Fabric Community
- Permissions: Make sure that you have the necessary permissions to access the data
Best Regards