We are having an issue with one of our BOTS using the CIS Standards for Chrome and Edge. A particular job goes out to the PDP Technologies Website and downloads a file from the RMV. This file is saved in the downloads folder and the bot searches for a file name with that day’s date “yyyymmdd” and then moved. Unexpectedly the file name in the downloads appeared to be a temporary file name “aed4b1cf-9b95-4708-91eb-5edff63c0b1d.tmp” vs the normal name with the date we see when we download this file. Why would the filename be a tmp file?
Welcome to the Forums @dhodgkins
Usually a .tmp file indicates that the download was not finished. Please allow some time for the download to finish. You can use wait for download activity:
The temporary file name “aed4b1cf-9b95-4708-91eb-5edff63c0b1d.tmp” that you are encountering when downloading a file from the PDP Technologies Website using UiPath may be a result of the way the website is generating and serving the file.
When you download a file from a website using a web browser, the web server may generate a temporary file with a random or unique name to ensure that the file is not accessible or downloadable by other users.
To handle this situation in your UiPath workflow, you can use techniques such as file manipulation activities (e.g., Move File, Copy File) or regular expressions to search for and identify the downloaded file based on its content, properties, or patterns, rather than relying solely on the file name.
We thought we fixed the issue. However, we tried a different website in our testing. We export the file, we give it a name, hit save, it should go to the file location we requested. Instead, it goes to the download folder with a temp name, aed4b1cf-9b95-4708-91eb-5edff63c0b1d.tmp.
We tried this on 3 of our 4 BOTS. Only one is working correctly.
Welcome to UiPath forum
The temporary file name that you mentioned (“aed4b1cf-9b95-4708-91eb-5edff63c0b1d.tmp”) is a common naming convention for temporary files created by web browsers when downloading files. The reason for this is that when you download a file from a website, the browser first downloads it to a temporary location on your computer and then renames the file to its original name once the download is complete. This is done to ensure that the file is downloaded completely before it is moved to its final location on your computer.
To avoid this temporary file getting created when working with UiPath, you can try using the ”Wait for Download Activity" in UiPath. This activity waits for a file to finish downloading and ensures that the file is completely downloaded before continuing with the automation process. This will help to ensure that the file you are looking for has been fully downloaded and renamed to its final name before the bot tries to move it.
Another way to avoid temporary files is to use a different download method. For example, instead of clicking on the download link on the website, you can try using UiPath’s “HTTP Request” activity to download the file directly from the server. This method can be more reliable and can avoid the creation of temporary files altogether.
I tried this activity with “tmp,crdownload” inputted in the ignore section of the activity, i am not sure why the bot still recognized the tmp file as downloaded file, any idea?