Hello everyone! I have a problem
I am carrying out a workflow in which I have the “ForEachFolderX” activity and within it is the “ForEachFileX” activity, the problem occurs when going through each of the files that are in the folders, because each file is opened twice times, but in folders the files are only found once. I don’t know what could be wrong.
Try getting the count of number of files in the folder and check if that count is matching the count in the folders. If the count matches, avoid opening the same file twice by getting the file name in the folder, assigning that to a string variable, put a condition to see if that file name matches the next file you are about to open.
I guess Include sub folders is checked both in foreachFolderX and in foreachfileX which makes each folder traverse twice…Please uncheck Include subfolders in FOreachFolderx loop and if you need check it only in the FOrEachFileX that way each folder is traversed only once