![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I have an SSIS package/job that spins through a directory of files (a Foreach loop, which has new files daily) and for each file does a Data Flow task (call it "Step A") that inserts data to a database. I am trying to add a condition within the Foreach (daily file) loop that bypasses that "Step A" Data Flow task -- when the daily file has previously been processed -- but bypass only for that file in the loop. This is necessary because some days the daily file directory is not completely refreshed with all new files. For my bypass checking, I have created a task to insert the name of the file in an SQL database when it has been processed for the "Step A" Data Flow task. But I have struggled with adding SQL tasks within the Foreach loop as well as adding another Data Flow task - but cannot figure out how to get the bypass to work, ie, checking for existence of the filename within my bypass check database and either bypassing or proceeding with Step A. Any suggestions are much appreciated. Thank you, Greg |
#3
| |||
| |||
|
|
From my SQLtask I have two contraints going to two sequences based on opposite Expressions. One being "@filename == @filename_on_db" (goes |
ailyFeedFilename] + "'"
#4
| |||
| |||
|
|
[Execute SQL Task] Error: An error occurred while assigning a value to variable "filename_on_db": "Single Row result set is specified, but no rows were returned.". |
ailyFeedFilename] + "')![]() |
| Thread Tools | |
| Display Modes | |
| |