In the Control Flow, I created a Execute SQL Task in SSIS. In the General tab, under SQLStatement I am able to write my query. Something like this:
select config_value from config_table where name ='ArchiveDays'
In the Parameter Mapping tab, I am able to create variable: User::ConfigValue
In the Result Set tab, I have the following:

I am able to run the Execute Data Flow Task without issue.
How can I check the value in the variable after I run the dataflow?
In the Control Flow, Data Flow task, I have a OLE DB Source, I try to use the variable created. The query parses, but I get the following Error message.

How to resolve? Am I missing something?