Anonymous's avatar
Anonymous
Not applicable
1 year ago
Status:
New

Issue with Microsoft.AnalysisServices v19.96.1 – “API is not accessible for application” Error

Hi everyone,

We’re encountering an issue after upgrading the Microsoft.AnalysisServices NuGet package from version v19.90.0 to v19.96.1 in our C# backend.

 

  • Scenario:
    We're connecting to a Power BI workspace using the following code:
string workspaceName = await _utilityService.GetWorkspaceName(WorkspaceID);
string connectionString = _utilityService.GetConnectionString(workspaceName);

string catalog = DatasetName;
Server server = new Server();
server.Connect(connectionString);

 

This works without any issues on v19.90.0.

 

  • Problem After Upgrade

When we upgrade to v19.96.1, the following error is thrown during the server.Connect(connectionString) call:

 

{
  "errorMessage": "PowerBI Request Failed.\r\n\r\nAction: Resolving the PBI workspace\r\n\r\nDescription: {\"Message\":\"API is not accessible for application\"}\r\n\r\nTechnical Details:\r\nRootActivityId: 9f71dfbb-fe3f-47de-9c7e-770b29bee817",
  "statusCode": 500
}

 

Please resolve this issue.

 

Thanks in advance.

 

 

 

 

 

 

 

 

 

 

 

 

No Comments