Hi,
Though there are many posts for this error i am still facing problem to overcome this error in SSIS For each loop task.
[File System Task] Error: An error occured with the following error message: "The process cannot access the file because it is being used by another process".
In our package we have 1 DFT and 1 For Each loop with FST
1. DFT- where many text files will be processed.
2.For Each loop with FST - for those processed file in the DFT will be deleted.
For the second Deleting action, i use For each loop with the FST placed inside it. In the For Each Loop,
Have provided the directory path for 'Folder' field & wild search text value to delete all the similar text files. i.e. like ToPo_*txt in the 'Files' field (because the directory holds many other text files too).
Tried all delay options to make it work, but i couldn't solve it.
Is there a way that we can unlock the files used with the first DFT immediately after its use ? Please let me know !
Thanks !
--------------------------- Radhai Krish | Golden Age is no more far | --------------------------