FIX: SFTP adapter receive locations can't list or delete files in BizTalk Server

Symptoms
When this issue occurs, you may receive one of the following error messages:
  • The adapter "SFTP" raised an error message. Details "System.Exception: Message: Open remote file for read error.. Sftp Error Code: '3221488139'. Sftp Error message: 'The system cannot find the file specified.
    '. ---> Microsoft.BizTalk.Adapter.SftpInvoker.SftpException: Open remote file for read error.
    at Microsoft.BizTalk.Adapter.SftpInvoker.SftpInvoker.OpenRemoteFileRead(String fileName)
    at Microsoft.BizTalk.Adapter.SftpInvoker.SftpFileReaderStream.Read(Byte[] buffer, Int32 offset, Int32 count)
    at Microsoft.BizTalk.Adapter.Sftp.SftpFileReceiver.TryReceive(TimeSpan timeout, RequestContext& context)
  • The adapter "SFTP" raised an error message. Details "System.Exception: Message: Delete file error.. Sftp Error Code: '3221488134'. Sftp Error message: 'The system cannot find the file specified.
    '. ---> Microsoft.BizTalk.Adapter.SftpInvoker.SftpException: Delete file error.
    at Microsoft.BizTalk.Adapter.SftpInvoker.SftpInvoker.DeleteRemoteFile(String filename)
    at Microsoft.BizTalk.Adapter.Sftp.SftpFileReceiver.DownloadComplete(String fileName, Boolean deleteFile)
    --- End of inner exception stack trace ---
    at Microsoft.BizTalk.Adapter.Sftp.SftpFileReceiver.DownloadComplete(String fileName, Boolean deleteFile)
    at Microsoft.BizTalk.Adapter.Sftp.SftpRequestContext.Reply(Message message, TimeSpan timeout)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.Reply(MessageRpc& rpc)".
Note Error code '3221488139' equals 0xC004020B; error code '3221488134' equals 0xC0040206.

This issue occurs in both Microsoft BizTalk Server 2013 and BizTalk Server 2013 R2.
Cause
This issue occurs because during directory listing (ls), the SFTP adapter (SFTP client) sends the SSH_FXP_OPENDIR packet and expects the SSH_FXP_HANDLE packet according to SFTP version 3. But some servers, for example, Maverick-based servers, send back the SSH_FXP_STATUS (error occurred) packet. The SFTP server is expecting the optional SSH_FXP_REALPATH packet before the OpenDir packet.
Resolution

Cumulative update information

This issue was first fixed in the following cumulative update of BizTalk Server:
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
References
For information about the service packs and cumulative update list for BizTalk Server, see KB 2555976: Service pack and cumulative update list for BizTalk Server.

For more information about BizTalk Server hotfixes, see KB 2003907: Information about BizTalk hotfixes and cumulative update support.
Properties

Article ID: 2990704 - Last Review: 10/09/2015 23:32:00 - Revision: 1.0

Microsoft BizTalk Server 2013 Branch, Microsoft BizTalk Server 2013 Developer, Microsoft BizTalk Server 2013 Enterprise, Microsoft BizTalk Server 2013 R2 Branch, Microsoft BizTalk Server 2013 R2 Developer, Microsoft BizTalk Server 2013 R2 Enterprise, Microsoft BizTalk Server 2013 R2 Standard, Microsoft BizTalk Server 2013 Standard

  • kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2990704
Feedback