Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
tobyfan1980
Regular Visitor

PowerBI Embeded report with RLS cannot display with 401 error code

I found that my customer page cannot show embedded report. 

 

I added roles to my report, import my report to azure powerbi workspace. Following the example at https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-rls, I get access token and embeded url of my report.   

 

Then only thing different from the example is that I am using direct query, so I update dataset connection string after I import the report.

 

However, the report in my web app cannot be displayed. All tiles is empty with a cross at the center. I got the http response as bellow.

 

 

Http Status Code401

Activity ID79d3cd7a-07cf-4e33-8110-967e16c3870c

Correlation IDdf6e5c94-6d50-212f-7c4c-64acc4f6f748

Request ID43bfe546-7e56-81cd-400f-33ae93960af5

TimeSun Feb 19 2017 23:38:26 GMT-0800 (Pacific Standard Time)

Version13.0.1700.1204

Cluster URIhttps://wabi-west-us-redirect.analysis.windows.net/

 

I remove the role in my report, and retry, then, I can see my report in my web app correctly.

 

I was wondering, what did I miss.  What kind of special thing should I do if my report has role.

Please help. 

 

1 REPLY 1
vinaypugalia
Resolver I
Resolver I

Hello,

 

If you are using DirectQuery with Power BI Embedded, please note that as on date, only SQL Azure & Azure SQL Warehouse are the only 2 data sources which are supported. Any data source using data gateway is not supported.

 

So, this might be a reason of you not seeing the data.

 

Thanks,

Vinay

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors