Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi ,
I am using Azure SQL for the report and it is in import mode. I need to set up a scheduled refresh. However, I get error in the Settings page, the errors says : "Failed to test the connection". Why would that appear? What should I do to set up the refresh? I am using the same credentials I used in logging into Azure SQL, but why it would say : " failed"? Do I need to create a gateway for ths from the scratch ?
Solved! Go to Solution.
Hi @JulieKucher ,
To what I can understand from your post you have a connection trough a gateway correct? Did you create the connection string in Power BI Service?
If you have check if on the gateway of the semantic model you have the correct connection selected.
When using a gateway the credentials come from the gateway connection so the problem may be on your connection.
Go and double check if the connection string is making the correct login.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @JulieKucher
May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.
Thank you
Hi @JulieKucher
I wanted to check if you had the opportunity to review the information provided by @cengizhanarslan and @MFelix . Please feel free to contact us if you have any further questions.
Thank you.
If you see “Failed to test the connection”, it means the Service cannot authenticate or reach the database, even though Desktop can.
If you used Azure AD (MFA) in Desktop, it will often fail in Service.
For scheduled refresh, use:
Azure AD – Service Principal (recommended), or
SQL authentication (username/password).
MFA user accounts are a common reason for “Failed to test connection”.
Hi @JulieKucher ,
To what I can understand from your post you have a connection trough a gateway correct? Did you create the connection string in Power BI Service?
If you have check if on the gateway of the semantic model you have the correct connection selected.
When using a gateway the credentials come from the gateway connection so the problem may be on your connection.
Go and double check if the connection string is making the correct login.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsVote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 10 | |
| 9 | |
| 9 |
| User | Count |
|---|---|
| 53 | |
| 38 | |
| 36 | |
| 25 | |
| 25 |