February 25, 2013 at 8:06 am
I want to create a variable that sets the file path of the child SSIS package. In the Expression tab of the Execute Package Task Editor (of the parent package), do I set the Connection property to the variable? I set a variable to the location of the package and package name. For example, PackagePth = C:\SSISPackages\Package1.dtsx. I assign PackagePth to the Connection property.
The error I get is "The connection C:\SSISPackages\Package1.dtsx is not found. This error is thrown by Connections collection when the specific connection element is not found. Error at Execute Package1 Package: The result of the expression "@[User::PackagePath]" on the property "Connection" cannot be written to the property. The expression was evaluated, but cannot be set on the property."
I also tried to set the PackagePth variable to C:\SSISPackages\ and PackageName to another variable defined as Package1.dtsx. But that didn't work either.
Thanks for the help!
February 25, 2013 at 8:09 am
Do you have "Delay Validation" set to True for that connection?
February 25, 2013 at 9:35 am
No, I don't. Does that property mean that it will not validate the expression during compile time, but until run time?
Should I set the connection variable to the dtsx (C:\SSISPackages\Package1.dtsx)? Or to C:\SSISPackages\ and then set the PackageName property to Package1.dtsx?
Thanks.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy