Skip to main content
Question

wait for download or validate file downloaded or not in A360


Forum|alt.badge.img+4

 

 

Hi have to click on Ok button , which leads to download a file in excel format in specific folder, how can i validate if the file download completed or not. 

and how to retry if it fails, is there any activity similar to wait for download  like in uipath.

 

3 replies

Marc Mueller
Pathfinder Advocate | Tier 6
Forum|alt.badge.img+15
  • Pathfinder Advocate | Tier 6
  • 277 replies
  • April 11, 2025

Hi ​@Harika 1170,

this would be a basic one:

 

If you know the filename already you don’t need the *.xlsx in IF statement.

Change x times loop and IF statement seconds to your needs.

You could also create a better one and have it as a central task bot with Input variables like DownloadPath, Filename, SecondsToWait and NumberOfIterations or what ever you need. With this approach you can trigger this bot within all you projects where you need to wait for downloads. 

 

Cheers

Marc


zaid.chougle
Forum|alt.badge.img+8
  • Navigator | Tier 3
  • 63 replies
  • April 11, 2025

@Harika 1170 , you can use a while loop to check IF file exists or not and basis that you can process further


jasthi bhaskar
Navigator | Tier 3
Forum|alt.badge.img+6

@Harika 1170 , 

Try below might helpful

           $RetryCount$ = 0
           $MaxRetries$ = 3
           Loop While $RetryCount$ < $MaxRetries$
               If File Exists "C:\Downloads\Report.xlsx"
                     Break Loop // File found, exit retry loop
               Else
                     Delay: 5 seconds // Wait for download to start
                     $RetryCount$ = $RetryCount$ + 1
               End If
           End Loop
           If $RetryCount$ = $MaxRetries$
               Log to File: "Download failed after max retries"
               // Handle failure (e.g., throw error, stop bot)

 

If the download fails after all retries, use the “Log to File” action to log the failure, or the “Throw” action to raise an error:

      Throw: "Failed to download Excel file after retries"

 Recommendation: You can pass  $MaxRetries$ from config file

 

Connect here again if you need any help


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings