For a SFTP receive location we configured a schedule service time that starts at 00:03:00 end ends 23:59:59. One little external job runs at 00:01 for abount 10 seconds. At this time the receivers end point is not available, so we do the schedule.
For the last three month this works fine. But one day the receive location runs on an error, 14 seconds after the service window starts and it was disabled because of that. (For sure, that occures on saturday morning, so we did not recognized it before monday morning :-( )
To fix this, we only had to enable the receive location and all waiting files were processed. Since then the port runs fine again without any configuration changes.
There are two corresponding errors in the windows application event log with the same time stamp:
First Event ID 5644 (Source: BizTalk Server):
The Messaging Engine failed to add a receive location "MyReceive_SFTP" with URL "sftp://ftp-xxx:22/mysubfolder/" to the adapter "SFTP". Reason: "Microsoft.BizTalk.Adapter.SftpInvoker.SftpException: Unable to initialize
SFTP connection. Ensure that the specified server's configuration details are correct.
at Microsoft.BizTalk.Adapter.SftpInvoker.SftpInvoker.Open()
at Microsoft.BizTalk.Adapter.Sftp.SftpConnection.OpenUnderlyingConnection(SftpConnectionProperties connectionProperties)
at Microsoft.BizTalk.Adapters.CommonHelpers.Connection`3.ConnectionPool`3.GetConnection(T1 connectionProperties, TimeSpan timeout)
at Microsoft.BizTalk.Adapters.CommonHelpers.Connection`3.GetConnection(T connectionProperties, TimeSpan timeout)
at Microsoft.BizTalk.Adapter.Sftp.SftpRLConfig.ValidateConfiguration(SftpReceivePropertyBag receivePropertyBag)
at Microsoft.BizTalk.Adapter.Sftp.SftpRLConfig.CreateBinding(RHConfig rhConfig)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.BtsServiceHostBase.InitializeRuntime()
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiveEndpoint.Enable()
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiveEndpoint..ctor(BizTalkEndpointContext endpointContext, IBTTransportProxy transportProxy, ControlledTermination control)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiver`2.AddReceiveEndpoint(String url, IPropertyBag adapterConfig, IPropertyBag bizTalkConfig)".
Following Event ID 5649 (Source: BizTalk Server) at the same second:
The receive location "MyReceive_SFTP" with URL "sftp://ftp-xxx:22/mysubfolder/" is shutting down. Details:"The Messaging Engine failed while notifying an adapter of its configuration. ".
How can we prevent to run in this situation again? (And: Why did that happened? )
Thanks for any clue
Heiko