Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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.

↑ Back to the top


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.

↑ Back to the top


Resolution

Cumulative update information

This issue was first fixed in the following cumulative update of BizTalk Server:

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


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 .

↑ Back to the top


Keywords: kb, kbqfe, kbfix, kbsurveynew, kbexpertiseadvanced

↑ Back to the top

Article Info
Article ID : 2990704
Revision : 1
Created on : 1/7/2017
Published on : 10/9/2015
Exists online : False
Views : 241