Forum Discussion

BrentMorgan's avatar
BrentMorgan
Regular Visitor
5 years ago
Solved

Power BI Embedded with Service Principal Throws PowerBINotLicensedException

We are working on setting up Power BI Embedded reports in a .net core web application. Following the examples provided by the online documentation, we were successful in setting up the Paginated Power BI (.rdl files) reports using a Service Principal.

 

However, when attempting to load Power BI Analytic (.pbix) reports we receive a 401 error on a call to https://wabi-us-east2-redirect.analysis.windows.net/explore/reports/..../modelsAndExploration?preferReadOnlySession=true url. Further investigation using Fiddler we were able to find the response from the site which included the message PowerBINotLicensedException.

 

We have Power BI Pro/Premium users and have setup the Workspace as Premium as well. 

 

Any help on why a Paginated report works and an Analytic one does not? Also, does anyone have thoughts on how to get passed the licensed exception when using a Service Principal?

 

Thanks -Brent Morgan

 

 

  • BrentMorgan's avatar
    BrentMorgan
    5 years ago

    Thanks I had reviewed those articles prior to posing this question. 

     

    I was eventually able to get both Paginated and Analytics reports to work, although I split the mechanism for authentication. Paginated will use Service Principal and Analytics will use the MasterUser option. Not ideal, but it at least works.

2 Replies