Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

File is locked by SSIS script task that copies the file to a new location

$
0
0
I have a script task that copies a file to a new location in one control flow task and then after so dataflow tasks i return to the control flow and run a second script task that deletes the files from the original data source location.  The last script task errors out with message that the files are in use by other process.  Through testing I have isolated the other process to be the first script task that copied the files to a new loacation.  How do I get the first task to relaease any file locks it created with the copyfile function when the task completes?

Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>