The Connection Managers only allow you to use expressions from their Properties menu. Control flow objects, like a Foreach Loop Container
expose their Expressions from the object themselves (as well as through their properties menu).
Right click on your Flat File Connection Manager and select Properties (Alt+Enter) In the ensuing menu, you should have the Expressions collection exposed. And you can see that I set the ConnectionString
property to @[User::CurrentFileName]. I also click the A->Z to sort my properties alphabetically vs the default grouping of "Categorized," so your menu might have things in a different order.
In your screen shot, you have focus on your Data Flow Task
which is inside your Foreach Loop Container
. I can tell this is so because the righthand, docked window shows "EngineThreads: 10" which is a Data Flow setting. Also, the pop up window has properties that are only available in a Data Flow. You need to click on the File Source Data
at the bottom of your package and then select properties.