none
BizTalk 2013 SFTP Adapter Dynamic SFTP send port exception: Open remote file for write error RRS feed

  • Question

  • I am using BizTalk 2013 SFTP adapter. I defined a Dynamic One-Way send port on BizTalk server administration.

    Below is the error I'm getting on BizTalk while trying to write files to a designated folder on a client's SFTP server.

    When defining the same path and properties on a Static One-Way send port everything works properly and the files are being saved on the SFTP server.

    A message sent to adapter "SFTP" on send port "ComverseSFTP_1.0.0.0_ComverseSFTP.SendFileToSFTP_SendFileToSFTPServer_f6b86b86a22079f8" with URI "SFTP://abc.xyz.com:22/upload/%SourceFileName%" is suspended.

    Error details: Microsoft.BizTalk.Adapter.SftpInvoker.SftpException: Open remote file for write error.

     Server stack trace:

       at Microsoft.BizTalk.Adapter.SftpInvoker.SftpInvoker.OpenRemoteFileWrite(String fileName, Int32 fileOffset)

       at Microsoft.BizTalk.Adapter.SftpInvoker.SftpFileWriterStream.Write(Byte[] buffer, Int32 offset, Int32 count)

       at Microsoft.BizTalk.Adapter.Sftp.SftpOutputChannel.Send(Message message, TimeSpan timeOut)

       at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)

       at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

     Exception rethrown at [0]:

       at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)

       at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)

       at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)

     Exception rethrown at [1]:

       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

       at System.ServiceModel.Channels.IOutputChannel.EndSend(IAsyncResult result)

       at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.SendCallback(IAsyncResult result)

    MessageId:  {926F44F2-9180-4B33-96FF-9E4CBC459382}

    InstanceID: {36A50A7F-63C4-48D9-903D-A33C85DDAE36}

    Can you please assist with explaining why are we getting this exception?

    Thank you for your help.

    Wednesday, October 22, 2014 2:58 PM

Answers

  • Below is the error I'm getting on BizTalk while trying to write files to a designated folder on a client's SFTP server.

    When defining the same path and properties on a Static One-Way send port everything works properly and the files are being saved on the SFTP server.

    A message sent to adapter "SFTP" on send port "ComverseSFTP_1.0.0.0_ComverseSFTP.SendFileToSFTP_SendFileToSFTPServer_f6b86b86a22079f8" with URI "SFTP://abc.xyz.com:22/upload/%SourceFileName%" is suspended.

    Error details: Microsoft.BizTalk.Adapter.SftpInvoker.SftpException: Open remote file for write error.

    Hi Yaeli1,

    From the error message above,  please check the permission for file writing , it seems that this issue is related to access permission.

    Best regards,

    Angie


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, October 30, 2014 3:25 AM