Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

package variable being set in script component is sometimes filled in and sometimes not.

$
0
0

I know this is an odd question.  Let me explain.

I set my package variable in a script component post execute.  I am able to view them using messagebox just after I set them in the same script component.  My last step in the control flow is a file system task that uses the variable to rename an output file with the variable as part of the filename.  This all works perfectly fine.  Using a breakpoint after my DFT (post execute) the variable is filled properly.

Here's my problem.  I want to use the variable in a derived column (in the same DFT where I set it) to set a column in the output file.  It is coming out blank.  I put a script component just prior to the derived column that will just display the variable (message box) and the variable is blank.

This is very strange because the variable is used in the last step of control flow to rename the file and it works properly.

What's could be happening?  Do I not have access to the package variable anywhere after it is set?

Thanks for any and all help.


shash


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>