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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
RonK
New Member

Scheduled refresh error "Unable to connect"

When I try to change the data source privacy setting (tried all 4 choices) I get the following error:

MTI Data Gateway:Invalid connection credentials.
Underlying error code:-2146232060
Underlying error message:Login failed for user '••••••••••••'.
DM_ErrorDetailNameCode_UnderlyingHResult:-2146232060
DM_ErrorDetailNameCode_UnderlyingNativeErrorCode:18456

 

I am connecting to SQL Server (in an Azure VM) using basic authentication. The server is set with a cert and to force encryption.

I can connect ok with PBI Desktop as long as Encryption is off. If Encryption is turned on I get the error:

Microsoft SQL: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The received certificate has expired.)

 

I have installed the client cert on the gateway and desktop. I checked the client and server certs and they are both valid and not expired.

 

Any ideas?

 

1 REPLY 1
v-kelly-msft
Community Support
Community Support

Hi  @RonK ,

 

It is because you are using the encrypted connection to connect to SQL database then causes the error. 

Please refer to this similar thread to troubleshoot the issue: 

https://stackoverflow.com/questions/17615260/the-certificate-chain-was-issued-by-an-authority-that-i...

 
 
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors