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

SSIS OnError Event Handler - File System Task issue

$
0
0

Hi

I have a SSIS issue that I cannot get past. I have a SSIS package called FileIntake that loops over a file share, picks up files, loads file content to a database table, then archives the file in an archive file share. I have OnError Event Handler in the package that I use to update the status of a file to a ‘technical failure’ status when a file fails processing. The other thing I need to do in the OnError Event Handler is to be able to move the failed file to a ‘failed files’ folder. When I replicate processing of an invalid file the archiving task in the OnError Event Handler failed with “Archive_invalid_files, File System Task: An error occurred with the following error message: "The process cannot access the file because it is being used by another process." Is there anything I can do to get the Archive_invalid_files task to work? Is there some trick to ‘unlock’ the file so that the OnError Event Handler can move the file?

Thank you in advance.

B


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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