Hi,
I am trying to programatically execute an SSIS package containing only a single data profiling task.
var pkg = app.LoadPackage(@"c:\Package.dtsx", null); var task = pkg.Executables[0] as TaskHost; var dpt = task.InnerObject as DataProfilingTask;
The package is read properly and debugger shows that "task.InnerObject" is an object of DataProfilingTask.
But the dpt variable contains a null value instead.