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

SSIS Custom Task. Package Variables not refreshing in IDE

$
0
0

Have a custom task component which during the create process adds a variable to the SSIS Package. The Following code is an example.

Dim P As Package = CType(_taskHost.Parent, Package) If Not P.Variables.Contains("ContinueProcess"Then P.Variables.Add("ContinueProcess"False"User", 0)

The code executes with no errors. If I then view the variables for the package, nothing appears to be added. However, when I close the package and re-open the variable was actually created. It appears that the IDE didn't refresh.

I've been pulling my hair out on this for a few years... The reason I'm asking the question again is because I've been asked to update the components for SQL2012.. Everything works great except the variable still do not refresh without closing the package.

Can you tell me what I'm missing?? is there a change event that I need to call to tell the IDE to refresh? I'm already using the IComponentChangeService Service for the task but I'm unable to find a similar service for the package..

Can you help?

Thanks

Jason Rawlins

  

Viewing all articles
Browse latest Browse all 24688

Trending Articles



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