Dear Forum,
Regarding Expressions in Conditional Split component, I am wondering how to refer to columns of other components ? If this is possible?
Chapter 11 of the book "SQL Server Integration Services Design Patterns" mentions a condition expression (for a conditional split) along these lines and syntax (am
wondering if a step is missed regarding how to make columns of prev. components available to later component .. or if the book refers to syntax type of example of an older version of SSIS?) .. :
(REPLACENULL([OLE DB Source].NAME_VAL1,"")==REPLACENULL([Lookup].NAME_VAL1,""))
i.e. suggesting it is possible to refer to columns of other components ..
This, however gives me an error message in SSIS as per this error text :
TITLE: Microsoft Visual Studio
------------------------------
Error at Data Flow Task [Conditional Split [188]]: Locating the input column named "[Lookup].[NAME_VAL1]" failed with error code 0xC0010009. The input column was
not found in the input column collection.
Error at Data Flow Task [Conditional Split [188]]: Attempt to parse the expression "(REPLACENULL([OLE DB Source].NAME_VAL1,"")==REPLACENULL([Lookup].NAME_VAL1,""))"
failed and returned error code 0xC00470DC. The expression cannot be parsed. It might contain invalid elements or it might not be well-formed. There may also be an out-of-memory error.
Error at Data Flow Task [Conditional Split [188]]: Cannot parse the expression "(REPLACENULL([OLE DB Source].NAME_VAL1,"")==REPLACENULL([Lookup].NAME_VAL1,""))".
The expression was not valid, or there is an out-of-memory error.
Error at Data Flow Task [Conditional Split [188]]: The expression "(REPLACENULL([OLE DB Source].NAME_VAL1,"")==REPLACENULL([Lookup].NAME_VAL1,""))"
on "Conditional Split.Outputs[Case 1]" is not valid.
Error at Data Flow Task [Conditional Split [188]]: Failed to set property "Expression" on "Conditional Split.Outputs[Case 1]".
------------------------------
ADDITIONAL INFORMATION:
Exception from HRESULT: 0xC0204006 (Microsoft.SqlServer.DTSPipelineWrap)
------------------------------
BUTTONS:
OK
------------------------------