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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Twinsin
New Member

After using Form for custom identity authentication in PowerBi Report Server, the custom visual styl

The custom visual styles cannot be displayed, and the iFrame requests local resources with an error 401.

The custom visual styles are displayed normally in PowerBi Desktop.

Has anyone had the same experience as me? And how was it resolved?

Twinsin_0-1731148829640.png

 

1 REPLY 1
v-jtian-msft
Community Support
Community Support

Hi,@Twinsin . I am glad to help you.

According to your description, you are experiencing an issue where a custom visual object in a report is not displaying properly in Power BI Report Server Web Portal.
The error number is 401, which generally means ‘Unauthorised’, i.e. the client requested a resource that requires authentication but failed to provide valid credentials!


I hope my suggestions below can help you.
1. Check that the credentials for the custom visual object on the Report Server Web Portal are set correctly and that they are consistent with those in Desktop.

2. Cross-domain requests: If your custom visual object needs to load resources from a different domain, you may need to configure a Cross Domain Resource Sharing (CORS) policy to allow these requests.

3. Authentication tokens: Custom visual objects may need to use authentication tokens to access protected resources. In this case, you need to ensure that the tokens are passed correctly in the request and that the server is able to authenticate these tokens. You also need to ensure that the authentication tokens have not expired.

I hope that the related documentation and issue below will help you:

URL:
Troubleshoot custom visuals in Power BI Desktop for Power BI Report Server - Power BI | Microsoft Le...
Re: Power Bi Report Server: Custom Text Filter vis... - Microsoft Fabric Community
Power BI Report Server - Custom Visual 401 Unauthorized · Issue #172 · microsoft/Reporting-Services
 

vjtianmsft_0-1731290788382.pngvjtianmsft_1-1731290794911.pngFor authorisation validation issues with custom visual objects, it is recommended that a member of the team with programming skills be contacted to resolve the issue. This may involve writing relevant authorisation scripts to ensure correct authentication and authorisation.


I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.