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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
rmalhan12
Frequent Visitor

Report not working once published (using managed roles to limit access)

I have a report which I have built with many sales managers within the dataset. A sales manager file has been uploaded to the dashboard along with email addresses to limit access based on the advisers that sit within each sales manager. When I test this within the desktop as per below it all works fine and filters the relevant advisers per sales manager. 

 

rmalhan12_0-1666883775067.png 

 

Dax Query to filter correctly

 

rmalhan12_1-1666883789543.png

Selections made and email address enterted of each sales manager to TEST

 

I have then gone onto publishing the report and it all works fine. However when I try using the filters based on roles it breaks - 

 

rmalhan12_2-1666883904518.png

 

Name of sales manager entered and added to "AA" which is role created in desktop

 

rmalhan12_3-1666883939486.png

 

End result after filters, if I am to enter the name again at the top the file has X on every visual with an error code of 401.

 

Any help would be much appreciated. This reports does use a directquery to another dataset. 

 

 

 

 

1 REPLY 1
v-henryk-mstf
Community Support
Community Support

Hi @rmalhan12 ,

 

What is your data source, and the corresponding connection mode. Generally for a 401 error message, the table schema is unable to access the associated data source. It is not the rls created that causes the cause.


Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.