0
我正在嘗試使用執行進程任務調用子包來處理文件,並且收到錯誤消息。我從前面的步驟中設定的參數在變量中傳遞。執行進程任務失敗調用子包
當我執行這個包,我得到錯誤信息說:
[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".
我的孩子包存儲在位置:\服務器IP \工作\ 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
非常感謝,如果有人可以提供我一些支持。非常感謝