Wait for download not working recently

Hi everyone,

I started experiencing issues with “Wait for Download”, especially with the “Ignore Files” part.

{B19B4D87-6CE3-4FEF-9A25-14ABA11035F1}

I don’t know if this is related to a Google Chrome update, but files (I encountered the issue with PDF and DOCX) started to be named: "non confirmé xxx.crdownload.yyyyyy.pdf"

Which makes the “Ignore Files” option useless, as .crdownload is no longer the extension of the file anymore.

Is there any plan to make this activity evolve in order to match this new behavior?

Regards,

Hey @jfl,

For your issue, both things are equally matters - changed browser behaviour & limitation of the activity whose purpose is to monitor folder and not a specific file.

We also thought to implement this activity some times but had other simpler workaround which works great: Retry Scope (configure interval & retry count to restrict limit) → in Action use File Exists, If not found throw exception, else skip.

Hi @jfl
Welcome to the Community

Try this

Use a loop to wait until the file is fully downloaded:

Logic:

  1. Use Assign / Get Files to read files from download folder
  2. Add a Do While loop
  3. Condition:
    File exists
    AND file name does NOT contain “crdownload”
    Example Directory.GetFiles(“YourFolderPath”,“*.pdf”).Any(Function(x) Not x.Contains(“crdownload”))

If solution works for you please mark as solution & happy automations with UiPath

Thanks

I don’t really agree that Retry Scope + File Exists is a simpler solution, especially since the name of the downloaded file is unknown and unpredictable.

In my opinion, an evolution of the activity’s behavior would be cleaner. It could continue to monitor a folder, but with a more precise exclusion of temporary files.

Thats a choice based on your Chrome settings, you can change that and have it prompt you for where you want the file downloaded and provide a full file path so you are in total control of the filename.