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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Ubbala
New Member

SQL server connecting in PB Desktop, but getting error in Power Bi Online

SQL server is succesfully connected to Power BI Desktop and able refresh data.

I am also able to publish the report to PB service and able to create connection and refresh dataset.

But when opening the report getting an error as unable to connect to datasource.

Ubbala_0-1725720500192.png

 

1 ACCEPTED SOLUTION
Ubbala
New Member

Thank you all for your suggestions; they were all correct.

In my case, the issue was with the configuration file for my on-premises data gateway. I had to edit the file and add my database name as outlined in the blog below.
https://learn.microsoft.com/en-us/power-query/connectors/sql-server 

View solution in original post

3 REPLIES 3
Ubbala
New Member

Thank you all for your suggestions; they were all correct.

In my case, the issue was with the configuration file for my on-premises data gateway. I had to edit the file and add my database name as outlined in the blog below.
https://learn.microsoft.com/en-us/power-query/connectors/sql-server 

Anonymous
Not applicable

Hello,SaiTejaTalasila,thanks for your concern about this issue.

Your answer is excellent!
And I would like to share some additional solutions below.
Hi,@Ubbala I am glad to help you.
According to your screenshot message, as suggested by SaiTejaTalasila, the datasource credentials for the semantic model that you have set up on the service are wrong or have expired and you need to reset the correct datasource credentials.
Here is my test:

vjtianmsft_0-1725956433552.png

 

vjtianmsft_1-1725956440946.png


For some datasource credentials, you can edit the datasource credentials directly, if you have problems with the credentials there is no way to edit them directly, you can set up the datasource credentials through the gateway connection used by the semantic model to ensure that your credentials are set up correctly and that the gateway can access the data properly.
like this.
The data source I am connecting to is the Analysis Service model, please set your authentication method correctly (by default Windows authentication method, you need to enter a local user account that can access your local AS model)
Set the "map user name" correctly.

vjtianmsft_2-1725956493399.png

 

The data source credentials for this semantic model are typically updated automatically when your gateway is set up correctly.
To avoid cache interference. You can clear your browser cache after you have successfully configured your gateway connection (this is important and generally solves the problem of some reports not being viewable)
Subsequently refreshing the semantic model. accessing the reports on the service.

Below is a list of issues that have been resolved, hope this helps.
URL:
Solved: How do i add data source credentials - Microsoft Fabric Community


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.

SaiTejaTalasila
Super User
Super User

Hi @Ubbala ,

 

Please update your authentication method in semantic model settings and try to refresh your semantic model.

 

Thanks,

Sai Teja 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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