Team,
I’m using below assign activity to assign first csv file of directory to variable str_arr_inputfile and using for each activity as below :
Pls let me know any suggestions/solution for Error
CODE :
str_arr_inputfile = Directory.GetFiles(str_Downloads_FolderPath,“*.csv”).OrderByDescending(Function(d) New FileInfo(d).CreationTime).Tolist(0)
for each item in str_arr_inputfile
ERROR :
For Each: Unable to cast object of type ‘System.Char’ to type ‘System.String’.
You will use for loop if you have a array of files and if you need toa ccess each…but now you already are getting only single file you just need to move that