SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Setting Connection in Execute Package task


Setting Connection in Execute Package task

Author
Message
rs80
rs80
SSC-Addicted
SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)

Group: General Forum Members
Points: 498 Visits: 407
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:TongueackagePath]" 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!
Daniel Bowlin
Daniel Bowlin
SSCertifiable
SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)

Group: General Forum Members
Points: 7886 Visits: 2629
Do you have "Delay Validation" set to True for that connection?
rs80
rs80
SSC-Addicted
SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)

Group: General Forum Members
Points: 498 Visits: 407
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search