![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have moved some DTS packages to a new server. I am calling a package from within an outer package. In the outer package (package 3)I am setting the server through a global variable and setting the GUID through a query select id from sysdtspackages where name = 'package 2' This appears to be working. However, package3 calls package2 and package2 calls package1. In this package2 that calls package1, I'm setting the server and the GUID in the same way that I am above. And when run alone, package2 works just fine. BUT, when package 3 calls package2, the query that sets the GUIDS for the package1's is not ever working. In other words, the outer most package finds the middle package and tries to run it, but the middle package cannot find the innermost package. It gives me an error that the PackageID does not exist. It appears that the set Guid dynamic properties task is never even being executed in the middle package. Can someone help me? Thanks! |
#3
| |||
| |||
|
|
In message <ce695524.0402041356.7c2678a1 (AT) posting (DOT) google.com>, Sara sara2thebradley (AT) yahoo (DOT) com> writes I have moved some DTS packages to a new server. I am calling a package from within an outer package. In the outer package (package 3)I am setting the server through a global variable and setting the GUID through a query select id from sysdtspackages where name = 'package 2' This appears to be working. However, package3 calls package2 and package2 calls package1. In this package2 that calls package1, I'm setting the server and the GUID in the same way that I am above. And when run alone, package2 works just fine. BUT, when package 3 calls package2, the query that sets the GUIDS for the package1's is not ever working. In other words, the outer most package finds the middle package and tries to run it, but the middle package cannot find the innermost package. It gives me an error that the PackageID does not exist. It appears that the set Guid dynamic properties task is never even being executed in the middle package. Can someone help me? Thanks! The theory sounds fine, and passing parameters between packages is also something that works well for me, so I'm not entirely sure what the cause is, however I there are two things you might try- Can you execute package 2 on it's own, not from package 3, and does it execute package 1 OK? Why not remove the package Guids entirely? Unless you want a specific version just use the name. If you have issues with deployment when Guids change then just blank the task property. Make the Execute Package Task name dependent only (http://www.sqldts.com/default.aspx?216) |
#4
| |||
| |||
|
|
In message <ce695524.0402041356.7c2678a1 (AT) posting (DOT) google.com>, Sara sara2thebradley (AT) yahoo (DOT) com> writes I have moved some DTS packages to a new server. I am calling a package from within an outer package. In the outer package (package 3)I am setting the server through a global variable and setting the GUID through a query select id from sysdtspackages where name = 'package 2' This appears to be working. However, package3 calls package2 and package2 calls package1. In this package2 that calls package1, I'm setting the server and the GUID in the same way that I am above. And when run alone, package2 works just fine. BUT, when package 3 calls package2, the query that sets the GUIDS for the package1's is not ever working. In other words, the outer most package finds the middle package and tries to run it, but the middle package cannot find the innermost package. It gives me an error that the PackageID does not exist. It appears that the set Guid dynamic properties task is never even being executed in the middle package. Can someone help me? Thanks! The theory sounds fine, and passing parameters between packages is also something that works well for me, so I'm not entirely sure what the cause is, however I there are two things you might try- Can you execute package 2 on it's own, not from package 3, and does it execute package 1 OK? Why not remove the package Guids entirely? Unless you want a specific version just use the name. If you have issues with deployment when Guids change then just blank the task property. Make the Execute Package Task name dependent only (http://www.sqldts.com/default.aspx?216) |
![]() |
| Thread Tools | |
| Display Modes | |
| |