We are using BizTalk Server 2020 with a Receive Location ( Sftp Adapter - Winscp ), which downloads files from a Sftp Server. The Url we poll the files from is: sftp://://* ( so we poll all the files located in root directory ).
Every time we poll a file we receive following Event Log Warning:
The adapter "SFTP" raised an error message. Details "Microsoft.BizTalk.Adapter.Sftp.SftpAdapterException: Failed to delete file '/File' from the SFTP server. ---> WinSCP.SessionRemoteException: Can't get attributes of file '/File'.
No such file or directory.
Error code: 2
Error message from server: The message [/File] is not extractable!
at WinSCP.SessionLogReader.Read(LogReadFlags flags)
at WinSCP.ElementLogReader.Read(LogReadFlags flags)
at WinSCP.SessionElementLogReader.Read(LogReadFlags flags)
at WinSCP.ElementLogReader.Read(LogReadFlags flags)
at WinSCP.ElementLogReader.ReadToEnd(LogReadFlags flags)
at WinSCP.Session.DoGetFileInfo(String path)
at WinSCP.Session.GetFileInfo(String path)
at Microsoft.BizTalk.Adapter.Sftp.SftpFileReceiver.DownloadComplete(String fileName, Boolean deleteFile)
--- End of inner exception stack trace ---
It seems like the Sftp Server does not support operations including attributes.
I would like to avoid these kind of warnings by ignoring them ( within Receive Location or WinScp ) although the files are received successfully. Is there a dedicated suppress setting for it? Are there any other ways to avoid this kind of warning except fixing it on Sftp Server?
In WinScp there is only a setting for upload options but not for download:

We updated the SFTP adapter in BizTalk 2020 CU5 to also support more variants of SFTP "MFT" type of servers where they rename or move files after they have been received. More errors related to this should now be ignored.
Please update to CU5 and check if you still see these kind of errors. Else there might be more information in the receive location log file if you enable this to understand more what is happening.