Errors while downloading files from SFTP

Alexandre G 71 Reputation points
2021-05-31T15:23:27.807+00:00

Hello,

I'm encountering an error since a few days from a pipeline that has been working fine for months, on the same SFTP server, with no changes recently.

The pipeline look up for files in a SFTP server (Get Metadata activity), then download each file to ADLS (Copy activity).

This is the error I get :

Failure happened on 'Sink' side. ErrorCode=UserErrorFailedToReadStream,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Failed to read data from Sftp server 'sftpserver.com', file path '/path/myfile.zip', offset '16777216', length: '16777216'.,Source=Microsoft.DataTransfer.ClientLibrary.SftpConnector,''Type=Renci.SshNet.Common.SshException,Message=Failed to read file.,Source=Renci.SshNet,'

What could be the cause of this? It has been working fine for months.

Thanks

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,539 questions
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA-MSFT 77,081 Reputation points Microsoft Employee
    2021-06-04T06:01:47.097+00:00

    Hello @Alexandre G ,

    Thanks for posting your question and using MS Q&A platform.

    The error message indicates that the SFTP server not support read from non-zero offset. And our service has no changes recently, so I suspect there is behavior change in your SFTP server side.

    Besides, I would suggest you to try this: in copy source, set max concurrent connections to 1, and see how the result.

    102280-image.png

    Investigating with the provided activity id:

    We suspect there are some changes on server side. I would suggest you reach out to the SFTP server vendor.

    Hope this helps. Do let us know if you any further queries.

    ---------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful