title: SSIS - passing an object variable in an expression of a task
body: <p>In my SSIS package (on Sql 2008 R2), I have a TransferObjectsTask task, and this task has a property called DatabaseDetails, which is of DatabaseInfoCollection type. What I am looking to do is specify a value for this property by preparing it in a script task prior and saving it in a variable of object type, and then passing this variable to the TransferObjectsTask task's DatabaseDetails property. Simple enough, right?</p>
  
  <p>BUT, as you may have already guessed, I cannot do this. When I specify the variable in the expression, I get...</p>
  
  <p><strong>"Expression cannot be evaluated / The data type of variable  is not supported in an expression."</strong></p>
  
  <p>How can I get around this?</p>
  
  <p>There is literally nothing to "evaluate" as the expression just has a variable name. Why would a task expose a property in expression if you cannot even specify a variable for it? Doesn't make sense. </p>
  
  <p>What am I missing??</p>
  
  <p>Thanks.</p>