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

File system task - Move file issue, skip the current log file thats open by another process - IIS logs

$
0
0
Hi,

I have created a package to move IIS log files from their source directory to another directory called processing. However, when the package tries to move the current log file it errors because the file is in use by another process (by IIS as its still writing to it). I would like the package to just ignore the "in-use" file and process the rest and show the package completing successfully. The file in use will be rolled by IIS at midnight and the file will be picked up by the next package run.
However, when the file is rolled and becomes free a new log file is created which will be marked as "in-use"...... which should be ignored at the next run.

Is there some way that I can tell the file system task to ignore in use files or add an event handler to do the same sort of thing?

Any assistance is appreciated

Viewing all articles
Browse latest Browse all 24688

Trending Articles



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