Data Factory pipeline to Azure SQL Database got Tcp/IP error randomely

Tim Cui 1 Reputation point
2022-12-11T18:09:20.46+00:00

TCP/IP error between pipeline to the sink (Azure Database) randomly, and no Audit log when the error happens.

We have a pipeline has been running good for a year, but it failed in random data flow several times a week, after enabled auditing for the Azure Database, I figured the auditing always missing logs for ~1mins when the errors happening.
It looks the SQL database was not accessible during the time, but how can I troubleshoot with it? And is there a way in Dataflow to handle it and retry?

Azure SQL Database
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,633 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Tim Cui 1 Reputation point
    2022-12-11T18:10:42.61+00:00

    There're tons of audit records, but totally no records at 1:51AM for the whole minute.
    269421-image.png

    0 comments No comments

  2. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2022-12-12T19:45:25.033+00:00

    Hello @Tim Cui ,

    Welcome to the MS Q&A platform.

    I believe the TCP/IP error you see is from the Azure SQL database end. Could you please provide us with the detailed error message you are seeing?

    Here is a troubleshooting document related to dataflow errors

    Can you please go to resource health on the Azure SQL DB and see if you see any error while you are getting the TCP/IP errors on the dataflow?

    269772-image.png

    Error code: DF-MSSQL-InvalidFirewallSetting
    Message: The TCP/IP connection to the host has failed. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.
    Cause: The SQL database's firewall setting blocks the data flow to access.
    Recommendation: Please check the firewall setting for your SQL database, and allow Azure services and resources to access this server.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.