Errors while copying files from SFTP with ADF Copy data Activity

Chukka, Rani 76 Reputation points
2023-02-16T14:46:35.59+00:00

ADF pipeline failed loading the file form SFTP server to Storage account with the following error.

ErrorCode=UserErrorFailedToReadStream,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException

,Message=Failed to read data from Sftp server '', file path ''

, offset '16777216', length: '16777216'.

,Source=Microsoft.DataTransfer.ClientLibrary.SftpConnector,''Type=Renci.SshNet.Common.SshException,Message=Input/output error,Source=Renci.SshNet,'

The pipeline is working fine from last couple of months. No code changes made, and no sftp connection issues found.

Appreciate your help.

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

Accepted answer
  1. SSingh-MSFT 16,371 Reputation points Moderator
    2023-02-17T16:44:46.27+00:00

    Hi @Chukka, Rani ,

    Thanks for posting this question in Microsoft Q&A forum.

    AS I understand from the question, ADF pipeline failed loading the file form SFTP server to Storage account with Error: Message=Failed to read data from Sftp server.

    Could you please check below points for troubleshooting:

    1). Could you please check if the Data which is getting transferred has increased considerably in size?

    2). Does Linked Service and Dataset configuration in ADF looks fine.

    3). Could you please check out what is the maximum concurrent connection limit in your sftp server?

    4). If the files are large, please take steps suggested here: SFTP Connector Problem with large files

    5). Utilize 'Degree of Parallelism.' in Copy Activity settings that data loading will use.

    Please try options mentioned above and share your inputs to proceed further.

    Thank you.


2 additional answers

Sort by: Most helpful
  1. Rose Mary Job 5 Reputation points
    2023-05-04T21:14:28.79+00:00

    I unchecked "Disable chunking" option in source in copy activity and the issue is resolved.

    1 person found this answer helpful.

  2. SSingh-MSFT 16,371 Reputation points Moderator
    2023-02-20T06:56:32.8266667+00:00

    Hi @Chukka, Rani ,

    Thanks for detailed reply.

    As mentioned by you, for smaller files there is no issue. For larger files Pipelines is failing.

    I would recommend you to check at SFTP side, it might be because of the insufficient storage on SFTP server.

    Please try storage optimization at SFTP level and this should help.

    Do let us know if further queries.


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.