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

Object variable lost in Script Task

$
0
0

In my SSIS package I have a object variable which gets intialize inside foreach loop container in Script Task. When I debug the code i see the values are adding to object. I'm using the same object variable outside foreach loop to read the values into arraylist in script task as follows: But when I debug the code it is showing the count as 0. Any thoughts please.

System.Collections.ArrayList names = new System.Collections.ArrayList();

names.Add(Dts.Variables["users"].Value);



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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