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
↧
SSIS Custom Task. Package Variables not refreshing in IDE
↧