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

Passing Variables in a Script Task using a foreach loop

$
0
0

1.  I have a master package that calls child packages.

2. The master package has user variables that are boolean True/False the initialized value is false.

3. When the master package calls the child packages the user variables are pass to the child packages.

4. The child package looks for a file and if the file exists it is processed.

5. The child package changes the user variable to true and passes the value back to the master package.

6. I need to create an email to tell me when the packages did not process due to the file not being there.

7. I do not want to use the ReadOnlyVariables in the script task editor as we will add more child packages to process in the master package.

8. I had wanted to use a foreach (I am using C#) loop in the script task to look for each user variable and construct an email and send out what files did not process.

So if someone can get me going in the right direction I would greatly appreacite it.


Antonio


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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