Value cannot be null.Parameter name: source

files.xaml (8.5 KB)
Getting error that value cannot be null, when opening the latest file in folder and copying it contents to a new file.

Please fix this error for me…

For foreach use this - Directory.GetFiles(“C:\Temp 2”,"*.csv",SearchOption.AllDirectories).OrderByDescending(Function(d) New FileInfo(d).CreationTime)
logging msg item.tostring will give you full path to files

Thanks, but i wanted to open the file and save it to the another csv file, not just to display the file found.

yes @Seles83
Item.tostring will give you full path of file… read that csv file… you can manipulate the table and write it to excel or csv file…

I would check your .csv file(s) in that Directory to make sure they are not blank. I got the same error on the ReadCsvFile activity because I have IncludeColumnNames checked and my .csv file in the selected directory was blank. Once I added something in row 1 and retried I did not get the same error.