In one of my projects, I've got two simultaneous sequence containers, one of which is executed quite rarely.
My solution was to control the ETL of earlier years with a package parameter - which works great.
However, after the ETL load I have to perform two tasks:
- Perform a 'clean' logout with my source system,
- Start DataMart load process
If the 'SEQ Load earlier years' task executes, I HAVE to wait with both tasks until 'SEQ Load earlier years' has completed. But if it doesn't execute, the tasks should execute still.
My initial solution is to solve this with a precedence constraint too, in the following way, but it turns out this will not work:
Whenever 'SEQ Load earlier years' doesn't execute (because the 'PerformFullLoad' parameter is set to False), the bottom tasks ('EPT Load Datamart' and 'SCR Logout') don't execute at all:
Of course it's possible to split the functionality in two separate loads (one 'actual' and one 'historical') - but I'm trying to see why SSIS handles this way: I expected that the precedence constraint (set to 'Expression or Constraint') should evaluate to 'True': the Expression evaluates already to true, so there's no need to wait for the sequence container to finish..
So: How can I implement in SSIS a conditional task (in my example: 'SEQ Load earlier years') that is itself conditional for another task (in my example: 'EPT Load Datamart') only if it executes?
Have I overlooked something? Did I use a 'wrong' pattern? (why?) Or is this simply an impossible scenario for SSIS?
PerformFullLoad
You'll always have the two SEQ containers completing so the dependent tasks should be easier to handle, yeah?