Wait for download not working with delay added

I have a wait for download that is not working, I have added a 45 second delay (even though the file is under 1mb and downloads instantly), I have also added a retry (3 times) and confirmed the folder address is correct. I am stuck, sometimes it works and sometimes it does not and no level of delay seems to help.

Hi @Nathan_Betters,

Kindly try file path instead of folder path.

Kind Regards.

1 Like

Hello @Nathan_Betters!

This is my first reply here in Forum, so let’s try to find out ^^'.

In your screenshot, in the “locals panel” (left side), in "Properties of Wait For Download (current), what is the value for the “Dow…” string type? Doe it have the full path including the file name?

Hi @Nathan_Betters could you send your workflow?

I should note, I also tried a time out of several minutes, and the files are very small, I can see them in the folder before the wait activity times out

how do I do that, I would need to know the file name of the file being downloaded, I can’t get that since its in the “wait for download”


Kindly try this assign. strRecentFilePath gives you the most recent file path.

strRecentFilePath = (newDirectoryInfo(“C:\Users\Nathan.Betters\Downloads”)).GetFiles().OrderByDescending(function(x) x.LastWriteTimeUtc).FirstOrDefault().FullName


Syntax error

Need to be firstordefault, in your assign it is firordefault.

If still not working, please try this assign.

Directory.GetFiles(“C:\Users\Nathan.Betters\Downloads”,“*.pdf”).OrderByDescending(Function(d) New FileInfo(d).CreationTime).Tolist(0)

what does newDirectoryInfo represent the syntax error is saying that is not declared

Please try this.

Directory.GetFiles(“C:\Users\Nathan.Betters\Downloads”,“*.pdf”).OrderByDescending(Function(d) New FileInfo(d).CreationTime).Tolist(0)

Something that I found and maybe can help you.
I have also use this activity waiting for download in the past for pdf file. And I found it very fast that the wait can’t get full path all the time.

But for other path of download like a zip file . Yes it is working well.

To download pdf I have created sequence to check if the file exists.