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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
joshua1990
Post Prodigy
Post Prodigy

A connection was successfully established with the server, but then an error occurred during the pre

Report_WriteToDataDestination: There was a problem refreshing the dataflow: 

'Couldn't refresh the entity because of an issue with the mashup document MashupException.Error: Microsoft SQL: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - The semaphore timeout period has expired.) Details: Reason = DataSource.Error;DataSourceKind = Lakehouse;DataSourcePath = Lakehouse;DataSourceKind.2 = SQL;DataSourcePath.2 = XXX.datawarehouse.fabric.microsoft.com;DataflowsStagingLakehouse1;Message = A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - The semaphore timeout period has expired.);ErrorCode = -2146232060;Number = 121;Class = 20;State = 0;Microsoft.Data.Mashup.Error.Context = System GatewayObjectId: XXX'. Error code: Mashup Exception Data Source Error. (Request ID: XXX).

I see no issues with the gateways in the dataflow. Lakehouse and Datafloe Gateway are on-premise gateways.

 

 

4 REPLIES 4
v-lgarikapat
Community Support
Community Support

Hi @joshua1990 

Thanks for reaching out to the Microsoft fabric community forum.

 

To troubleshoot the pre-login handshake error in your dataflow refresh, start by checking for network issues like unstable connectivity between the on-premise gateway and the SQL server. Ensure that the firewall and required ports for SQL communication are open and not blocking traffic. Restart the on-premise gateway to clear any temporary issues and verify that your SQL server allows remote connections with the correct TLS settings. If encryption is involved, double-check authentication methods and certificates to ensure they are valid and updated. Consider increasing timeout settings if semaphore timeout errors persist. Run the dataflow on another server or gateway instance to see if the problem is isolated. Finally, check SQL Server logs for more specific error details and review any recent changes in the environment that could have introduced this issue.

 

Timeout expired messages when connecting to SQL Server - SQL Server | Microsoft Learn

Solved: DataSource.Error: Microsoft SQL: A connection was ... - Microsoft Fabric Community

Solved: Re: SQL EndPoint - Successfuly connected but erro... - Microsoft Fabric Community

 

If this post helped resolve your issue, please consider giving it Kudos and marking it as the Accepted Solution. This not only acknowledges the support provided but also helps other community members find relevant solutions more easily.

We appreciate your engagement and thank you for being an active part of the community.

Best regards,
LakshmiNarayana

 

Hi @joshua1990 ,

If your issue has been resolved, please consider marking the most helpful reply as the accepted solution. This helps other community members who may encounter the same issue to find answers more efficiently.

If you're still facing challenges, feel free to let us know we’ll be glad to assist you further.

Looking forward to your response.

Best regards,
LakshmiNarayana.

Hi @joshua1990 ,

 

If your issue has been resolved, please consider marking the most helpful reply as the accepted solution.

This helps other community members who may encounter the same issue to find answers more efficiently.

If you're still facing challenges, feel free to let us know we’ll be glad to assist you further.

Looking forward to your response.

Best regards,
LakshmiNarayana.

Hi @joshua1990 ,

As we haven't heard back from you, we are closing this thread. If you are still experiencing the issue, please feel free to create a new thread we’ll be happy to assist you further.

Thank you for your patience and support.

If you found our response helpful, please mark it as Accepted Solution so others with similar queries can find it easily.

 

Best Regards,

Lakshmi Narayana

Helpful resources

Announcements
May FBC25 Carousel

Fabric Monthly Update - May 2025

Check out the May 2025 Fabric 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.