SSIS: how to use single variable in two tasks
<p>I have an SSIS package with a <code>Data Flow Task</code> and an <code>FTP Task</code>. I have to use two <code>expression variables</code> like this:
<a href="https://i.stack.imgur.com/D5Swc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D5Swc.png" alt="screenshot1"></a></p>

<p>(These create dynamic file names using date parts)</p>

<p>Otherwise if I have just one variable, one task steps on the variable while the other task is trying to use it and gives me the '<em>cannot lock variable for readonly</em>' error.</p>

<p>Is it possible to have one variable work in two places? Would seem intuitive... This is sloppy. Should someone change one variable without the other to match it would bomb.</p>