Thursday, March 8, 2012

Calling a child package from the Main Package

I need to pass variables from the parent package to the child package. I got this to work in a small test case. But in the actual project, I get an error when I try to do that. The parent package's log has this error :

Error: Error 0xC0012050 whike loading package file "c:\.......". Package failed validation from the ExecutePackage task. The package cannot run..

There's nothing more to go on here in the log.

Any ideas ?

-chiraj

May be you will have to check the following

1) Check if the child package is working fine - if you execute it separately with the required input parameters.
2) Guess your child package is stored in the filesystem - Check if the calling package's identitiy has got access to the folder where the child package resides.

Thanks,
Sankaranarayanan MG

|||

I got it to work. There were some Script tasks that were not getting the variables. Once I fixed that, it started working. Now I need to make sure it works consistently. I've read elsewhere that it suddenly chokes.

Thanks

-chiraj

|||

I forgot to mention this. The more important reason why it started working is when I set the property "ExecuteOutOfProcess" to true. By default it is false. I guess there are some memory /thread issues and it was choking.

-chiraj

|||For me the package isolation level was "unspecified" and the TransactionOption was "not supported". Changing them to "Serializable" and "Supported" did the job.

Sander

No comments:

Post a Comment