Wait for Download: The "file" was found but it's in use

Hi everyone,

I’m currently working on automating the process of downloading various files from an application called Pronto. During the download, I assign the downloaded file to a variable for later use. However, I’m encountering two issues with the ‘Wait for download’ activity.

The first issue arises when, after the timeout, it throws the error “Wait for Download: The [File] was found but it’s in use.” I’m unsure why this error is occurring and how to handle it effectively.

The second problem occurs when the file is successfully downloaded, but the ‘Wait for Download’ activity fails to detect it, resulting in a timeout error (the monitored folder path is correct). Although I’ve attempted to address this issue with a Try Catch activity, I’m curious to understand its root cause and how to prevent it, rather than relying solely on error handling.

Thank you for your assistance.

@camila.salcedo

Welxome to the community

If the file with same name is already present before downloading then it would fail…so enaure you delete the file with same name before hand

Cheers

@camila.salcedo

check this reference

instead of wait for download activity ,you can try below steps.

  1. Use Delete File Activity - if exists.
  2. Use File Exist Activity
  3. Inside While loop give boolean condition. it will wait and check until file donwloaded.

Happy automation.
tukdi :slight_smile:

Thank you for your answer. Unfortunately, the name of the file changes in every download.

Thank you for your answer. I’ve already checked the folder and there’s no file with the same name.

Thank you for your answer. Unfortunately, I’ve already tried increasing the timeout but it still doesn’t work.

@camila.salcedo

When you click on export would the filw be downloaded and left opwn?

Cheers

Go to your browser settings and enable “ask before Download” it will ask everytime to download file , indicate “Save as” Window to rename.

Happy Automation.
Tukdi :slight_smile: