执行进程任务无法调用子包

时间:2014-11-21 15:57:33

标签: sql-server database ssis business-intelligence

我正在尝试使用执行进程任务调用子包来处理文件,我收到了一条错误消息。我在上一步中设置的参数在变量中传递。

当我执行包时,我收到错误消息:

[Execute Process Task] Error: In Executing "C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\DTExec.exe" "
/FILE "\\serverIP\Work\SSIS\child_package.dtsx" 
/SET \Package.Variables[User::controlCount].Properties[Value];"0" 
/SET \Package.Variables[User::fileID].Properties[Value];"1" 
/SET \Package.Variables[User::filePathName].Properties[Value];"\\serverIP\work\test.txt" 
/SET \Package.Variables[User::archivePath].Properties[Value];"\\serverIP\work\archive\" 
/SET \Package.Variables[User::stageID].Properties[Value];"10" 
/SET \Package.Variables[User::MasterExceptionPkg].Properties[Value];"" 
/Conn OH_STAGE;Provider=SQLNCLI10.1;Server=serverIP;Database=OH_STAGE;Trusted_Connection=yes;" at "", The process exit code was "6" while the expected was "0".

我的子包存储在以下位置:\ serverIP \ Work \ SSIS \ child_package.dtsx

参数:

/FILE "" 
/SET \Package.Variables[User::controlCount].Properties[Value];"0" 
/SET \Package.Variables[User::fileID].Properties[Value];"23" 
/SET \Package.Variables[User::filePathName].Properties[Value];"" 
/SET \Package.Variables[User::archivePath].Properties[Value];"" 
/SET \Package.Variables[User::stageID].Properties[Value];"26" 
/SET \Package.Variables[User::MasterExceptionPkg].Properties[Value];""

传递给变量值:

controlCount: 0
fileID: 1
filePathName: \\serverIP\work\test.txt
entityArchivePath:\\serverIP\work\archive\
MasterExceptionPkg: 
stageID: 18

非常感谢,如果有人能给我一些支持。非常感谢

1 个答案:

答案 0 :(得分:0)

确保您的子包单独成功执行。 并尝试将此包添加到主包。 以管理员身份运行VS