There a solution is offered with System.IO.Directory.GetFiles(“XXX”).Last. My issue is that it takes file that is not even in the directory. Any ideas what the issue might be?
I just tried to put in the full file name but I got the following error message:
Multiple Assign: ‘System.IO.Directory.GetFiles(“C:\Users\castvin\Downloads\GD_GMMMLDFS_LAG_BES_TAEGL_FS06062025083950223.xlsx”)’ kann nicht zu ‘Datei’ zugewiesen werden.
I wonder because I copy the Filepath directly from the file…
Hi Ashok, yes I tried that already but I am having issues working with the pop up which arrives. UI Path cant find it after clicking the dowload button
To handle that save as popup, you will have to use a separate Use application/browser activity, inside it use Type Into and click activity to save the file.
The error happens because Directory.GetFiles requires a folder path, not a full file path. You should pass the folder path and a search pattern (with wildcards), not the exact file name.
Try to use like below,