dbTalk Databases Forums  

SSIS DTEXEC issue with setting gvars

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


Discuss SSIS DTEXEC issue with setting gvars in the microsoft.public.sqlserver.dts forum.



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

Default SSIS DTEXEC issue with setting gvars - 06-16-2006 , 01:12 PM






I am attempting to execute a pckg using DTEXEC. I need to set a package
variable to the text value "SQLAgent". This variable, 'Caller', is scoped
for the package itself. This is the command stmt:

dtexec /DTS "\MSDB\PATH\PCKGNAME" /SERVER SERVERNAME /SET
\Package.Variables[User::Caller].Properties[Value];SQLAgent


I am receiving the following message when I execute this from cmdshell.
What am I doing wrong when trying to set the variable??

Message
Executed as user: SERVERNAME\SYSTEM. Microsoft (R) SQL Server Execute
Package Utility Version 9.00.1399.06 for 32-bit Copyright (C) Microsoft
Corp 1984-2005. All rights reserved. Started: 12:53:54 PM Warning:
2006-06-16 12:53:55.04 Code: 0x80012017 Source: PCKGNAME
Description: The package path referenced an object that cannot be found:
"\Package.Variables[User::Caller].Properties[Value]". This occurs when an
attempt is made to resolve a package path to an object that cannot be found.
End Warning DTExec: Could not set
\Package.Variables[User::Caller].Properties[Value] value to SQLAgent.
Started: 12:53:54 PM Finished: 12:53:55 PM Elapsed: 0.125 seconds.
Process Exit Code 1. The step failed.

Thanks.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: SSIS DTEXEC issue with setting gvars - 06-17-2006 , 09:10 AM






Hello SSM,

Have you tried wrapping your path and value in " ?

Allan


Quote:
I am attempting to execute a pckg using DTEXEC. I need to set a
package variable to the text value "SQLAgent". This variable,
'Caller', is scoped for the package itself. This is the command stmt:

dtexec /DTS "\MSDB\PATH\PCKGNAME" /SERVER SERVERNAME /SET
\Package.Variables[User::Caller].Properties[Value];SQLAgent

I am receiving the following message when I execute this from
cmdshell. What am I doing wrong when trying to set the variable??

Message
Executed as user: SERVERNAME\SYSTEM. Microsoft (R) SQL Server Execute
Package Utility Version 9.00.1399.06 for 32-bit Copyright (C)
Microsoft
Corp 1984-2005. All rights reserved. Started: 12:53:54 PM
Warning:
2006-06-16 12:53:55.04 Code: 0x80012017 Source: PCKGNAME
Description: The package path referenced an object that cannot be
found:
"\Package.Variables[User::Caller].Properties[Value]". This occurs when
an
attempt is made to resolve a package path to an object that cannot be
found.
End Warning DTExec: Could not set
\Package.Variables[User::Caller].Properties[Value] value to SQLAgent.
Started: 12:53:54 PM Finished: 12:53:55 PM Elapsed: 0.125 seconds.
Process Exit Code 1. The step failed.
Thanks.




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.