dbTalk Databases Forums  

SSIS Package Configurations Error

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss SSIS Package Configurations Error in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
GH
 
Posts: n/a

Default SSIS Package Configurations Error - 05-26-2006 , 10:41 AM






I created a config type 'Parent package variable' (ParentPackKey) in a parent
package and successfully passed it to a child package. I successfully
performed an INSERT into a table. The correct ParentPackKey appeared in the
table.

However this error appears:
"Validation error. Update <<PackageName>> : Failed to lock variable
"User::ParentPackKey" for read access with error 0xC0010001 "The variable
cannot be found. This occurs when an attempt is made to retrieve a variable
from the Variables collection on a container during execution of the package,
and the variable is not there. The variable name may have changed or the
variable is not being created.". "

The "ParentPackKey" was created in the Variables window in both the Master
and Child packages.

What's going on??
--
Thanks in advance
GH

Reply With Quote
  #2  
Old   
GH
 
Posts: n/a

Default RE: SSIS Package Configurations Error - 05-26-2006 , 10:50 AM






Additionally This warning appears:

"Warning: 0x8001201A at <<package name>>: Configuration from a parent
variable "ParentPackKey" did not occur because there was no parent variable
collection.
"

The 'Parent Variables Collection" is the variables listed in the "Variables"
window on the parent package page .. correct or am I missing something.
--
GH


"GH" wrote:

Quote:
I created a config type 'Parent package variable' (ParentPackKey) in a parent
package and successfully passed it to a child package. I successfully
performed an INSERT into a table. The correct ParentPackKey appeared in the
table.

However this error appears:
"Validation error. Update <<PackageName>> : Failed to lock variable
"User::ParentPackKey" for read access with error 0xC0010001 "The variable
cannot be found. This occurs when an attempt is made to retrieve a variable
from the Variables collection on a container during execution of the package,
and the variable is not there. The variable name may have changed or the
variable is not being created.". "

The "ParentPackKey" was created in the Variables window in both the Master
and Child packages.

What's going on??
--
Thanks in advance
GH

Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default RE: SSIS Package Configurations Error - 05-29-2006 , 01:06 AM



Hello,

I'd like to know how you insert into table from the local variable.

I get the local variable from a parent package variable by using the parent
variable:

Right click the child package->Package configuration and map the parent
variable to a local variable..

Then I used a Execute sql task package to insert into the table by using a
SP while mapping the local variable to a SP input parmater. You may want to
refer to the following articl for more details:

http://www.sqlis.com/default.aspx?58

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

================================================== ===



This posting is provided "AS IS" with no warranties, and confers no rights.



Reply With Quote
  #4  
Old   
=?Utf-8?B?R0g=?=
 
Posts: n/a

Default RE: SSIS Package Configurations Error - 05-30-2006 , 02:20 PM



Hi Peter,

Thanks for the reply.

This is the process:

1.) In the parent package the ParentPackKey is determined by the following:
SELECT MAX(PackageKey) AS ParentPackKey
FROM dbo.ProcessHistory_Package
WHERE PackageName = @PackageName AND Start = @Start

2.) In package Configurations I have created a Parent Package Variable
ConfigurationString = 'ParentPackKey', TargetObject = 'ParentPackKey',
TargetProperty = 'Value'. And the ParentPackKey is added as a 'user
variable' with a 'package' scope to the variables window.

3.) The next step in the Parent Package is an ExecutePackageTask which
calls the Child package.

4.) The Child Package calls an Execute SQL Task which insets the value of
@ParentPackKey into the history table.

The task completes however the following messages are returned:

Information: 0x40016042 at <<packagename>>: The package is attempting to
configure from the parent variable "ParentPackKey".
Warning: 0x8001201A at <<packagename>>: Configuration from a parent variable
"ParentPackKey" did not occur because there was no parent variable collection.


Where/What is the 'Parent Variable Collection'

--
Thanks in advance
GH


""privatenews"" wrote:

Quote:
Hello,

I'd like to know how you insert into table from the local variable.

I get the local variable from a parent package variable by using the parent
variable:

Right click the child package->Package configuration and map the parent
variable to a local variable..

Then I used a Execute sql task package to insert into the table by using a
SP while mapping the local variable to a SP input parmater. You may want to
refer to the following articl for more details:

http://www.sqlis.com/default.aspx?58

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

================================================== ===



This posting is provided "AS IS" with no warranties, and confers no rights.




Reply With Quote
  #5  
Old   
AT
 
Posts: n/a

Default RE: SSIS Package Configurations Error - 05-31-2006 , 12:48 AM



Hello,

Thank you for your update.

Based on my test, it is not necessary to configure "package configurations"
on parent package. Instead you shall configure "package configuration" on
child package. For example, you have a parentpackkey variable in parent
package, you shall configure the following:

configuration name = name
configuration type= parent package variable
configuration string= parentpackkey
Target object = [local variable name]

You could then use local variable directly in your Execute SQL Task.

If anything is unclear, please let me know. Have a great day!

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

================================================== ===


This posting is provided "AS IS" with no warranties, and confers no rights.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.