web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Power Automate Desktop
Unanswered

Error when downloading from SFTP

(0) ShareShare
ReportReport
Posted on by
Hi everyone,

I’m running into an issue with our SFTP download automation(Error message below). Here’s what we’ve tested so far:

  • When the ZIP files contain only .txt files, the automation works fine.

  • Standalone Excel files (.xlsx) also download correctly.

  • The problem occurs when the ZIP files contain Excel files (.xlsx). For some reason, these don’t download properly and we end up with a corrupted zip.

We've tried restarting the VM but still the same issue.

Can someone please assist ?

 

What happened?

Problem while executing action 'DownloadFiles'. Can't download file: /outbound/XXXXXX.zip. Error while deducing the file paths to use for the local copies. Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Can't download file: /outbound/XXXXXX.zip. Error while deducing the file paths to use for the local copies. ---> Renci.SshNet.Common.SshOperationTimeoutException: Operation has timed out. at Renci.SshNet.SubsystemSession.WaitOnHandle(WaitHandle waitHandle, Int32 millisecondsTimeout) at Renci.SshNet.Sftp.SftpSession.EndRead(SftpReadAsyncResult asyncResult) at Renci.SshNet.Sftp.SftpFileReader.<StartReadAhead>b__23_0() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Renci.SshNet.Sftp.SftpFileReader.Read() at Renci.SshNet.SftpClient.InternalDownloadFile(String path, Stream output, SftpDownloadAsyncResult asyncResult, Action`1 downloadCallback) at Microsoft.Flow.RPA.Desktop.Modules.FTP.Actions.Utilities.SftpConnection.DownloadFile(String localPath, String remotePath) at Microsoft.Flow.RPA.Desktop.Modules.FTP.Actions.Utilities.FtpUtilities.DownloadSingleFile(IFtpConnection connection, FolderObject downloadInto, String ftpFileDirectory, String fileName, FtpTransferType transferType, IfFtpFileExists ifFileExists, Boolean locateDir, String ftpRootDirectory) --- End of inner exception stack trace --- at Microsoft.Flow.RPA.Desktop.Modules.FTP.Actions.Utilities.FtpUtilities.DownloadSingleFile(IFtpConnection connection, FolderObject downloadInto, String ftpFileDirectory, String fileName, FtpTransferType transferType, IfFtpFileExists ifFileExists, Boolean locateDir, String ftpRootDirectory) at Microsoft.Flow.RPA.Desktop.Modules.FTP.Actions.Utilities.FtpUtilities.DownloadFiles(IFtpConnection connection, List`1 remoteFilePaths, FolderObject downloadInto, FtpTransferType transferType, IfFtpFileExists ifFileExists, Boolean locateDir, String ftpRootDirectory) at Microsoft.Flow.RPA.Desktop.Modules.FTP.Actions.DownloadFtpFileAction.Execute(ActionContext context) at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 544 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 482 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 287

Last 30 days Overall leaderboard