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! It's time to submit your entry. Live now!
I have created a .NET Core MVC App, but not able to get it running. It returns the subject error.
Microsoft.PowerBI.Api.EmbedTokenOperations.GenerateTokenWithHttpMessagesAsync(GenerateTokenRequestV2 requestParameters, Dictionary<string, List<string>> customHeaders, CancellationToken cancellationToken)
In the Azure Logs, I am able to trace the connection request to the Application have happened successfully, but the Token Generation does not happen. What could I be missing?
After viewing few blogs, I have added identity details before token generation to my Services -> Service.cs file
var effectiveIdentities = new List<EffectiveIdentity>();
foreach (var dataset in datasets)
{
effectiveIdentities.Add(new EffectiveIdentity(
username: "my_email_address",
datasets: new List<string> { dataset.Id.ToString() }
));
}
// Bundle token requests for reports, datasets, and the workspace
var tokenRequest = new GenerateTokenRequestV2(
reports: reportTokenRequests,
datasets: datasetTokenRequests,
targetWorkspaces: workspaceRequests,
identities: effectiveIdentities
);
Solved! Go to Solution.
Resolved after creating a New Workspace and Dataset. There were some issues with the Dataset due to which it returned a Bad Request
Resolved after creating a New Workspace and Dataset. There were some issues with the Dataset due to which it returned a Bad Request
Tried troubleshooting using Fiddle, but did not throw up any error. While troubleshooting through browser, it shows Internal Server Error : Error Code 500
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |