The value for variable
being assigned inside a data flow task
can't be used in the split transformation
or later in the Data Flow task . The values generally get populated
once DFT gets completed
.
Variable values does not update during the execution of Data Flow task
Even though you are able to see value 1
or set some other value to Variable
from script transformation in post or pre execution events ,these values gets effected only after the execution of DFT
Hence the updated value can be used in precedence constraint or other tasks in control flow .
Read this article .