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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
JulieKucher
Frequent Visitor

IS the problem in gateway or credentials?

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 ? 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

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


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





View solution in original post

4 REPLIES 4
v-nmadadi-msft
Community Support
Community Support

Hi @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

v-nmadadi-msft
Community Support
Community Support

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.

cengizhanarslan
Super User
Super User

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”.

 

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.
MFelix
Super User
Super User

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


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.