Here's a potential solution with two assumptions:
- All files in the destination folder were moved by this package.
- File names are unique.
You can add a file name registration step to the ETL log.
Create a new log table in the database with a column for the file name. In each package loop, write the file name to this table. You can then use this as a simple lookup table that is used by some conditional logic in the ETL to check if the file name being processed matches an existing file.
Exactly how you implement the logging step and conditional check (may be conditional in the data stream executed in the script task, etc.) will depend on the design of your package, but it should fulfill what you are looking for.
Matt donahue
source share