all groups > sql server dts > august 2007 >
You're in the

sql server dts

group:

Calling a package within a package...



Calling a package within a package... Feruis
8/29/2007 8:10:01 AM
sql server dts: Hello,
I have a package that calls another package using the "Execute Package
Task". When I execute the parent package from BIDS or designer, the parent
package calls the child package without a problem. If I execute the package
from a SQL Server Agent job, the child package does not execute. This is
true when the job is of type "SQL Server Integrated Service Package" or
"Operating System (CmdExec)" using "dtexec". I've tried imported both
packages into SQL Server and I've tried it leaving the packages on the file
system and the result is the same.

I've also tried executing the package from the command prompt using "dtexec"
and still only the parent package gets executed.

Anyone out there has had the same or similar experience that could provide
me with some information on this issue?

This is very frustrating and any help on this will be greatly appreciated!!

RE: Calling a package within a package... Gouti
8/29/2007 8:44:05 AM
Is the child package called using Execute Package task.
Check the encryption properties of the packages . In addition, you might
also want to see your workflow. Disable the subpackage and connect a test
script task or execute sql task and see if it comes there.

Are there any other tasks following the subpackage task ?



[quoted text, click to view]
RE: Calling a package within a package... Feruis
8/29/2007 9:08:00 AM
Hello Gouti,
The child package is the last task called in the parent package, and yes, I
am using an "Execute Package Task". Like I said in my first post, when I
execute the package in the designer (BIDS), it works like it should. It just
doesn't work when I schedule it through a SQL Server Agent job or from the
command prompt.

The protectionlevel property is set to "EncryptSensitiveWithUserKey" on both
packages and they seem to work well when run from the designer.

Thank you for looking at this issue. I brings some relief to my frustration!!



[quoted text, click to view]
RE: Calling a package within a package... Gouti
8/29/2007 9:52:04 AM
If you use "EncryptSensitiveWithUserKey" , the package is encrypted with your
credentials. The sql agent job might be running under a different user
context, hence the failure.
To avoid you have few solutions:
you can use EncryptSensitivewithpassword and provide the password.
or you can use dtexec and use /password to provide the password.
The other options are to store the package using ServerStorage. (check BOL
for more details).






[quoted text, click to view]
AddThis Social Bookmark Button