I am trying to call ssis package from SP , package is deployed in file system
declare @cmd varchar(1000)
Declare @FromDate varchar(20)
Declare @ToDate varchar(20)
select @cmd ='dtexec /F "'+ @ssispath +'"'
select @cmd = @cmd+' /SET \Package.Variables[User::FromDate].Properties[Value];"'+ @FromDate +'"'
select @cmd = @cmd+' /SET \Package.Variables[User::ToDate].Properties[Value];"'+ @ToDate +'"'
EXEC sp_configure 'xp_cmdshell','1' --- Enable Command Shell
RECONFIGURE
exec master..xp_cmdshell @cmd
EXEC sp_configure 'xp_cmdshell','0' --- Disable Command Shell
RECONFIGURE
GOT below error
output
Microsoft(R) SQLServerExecutePackageUtility
Version9.00.1399.06for32-bit
Copyright(C)MicrosoftCorp1984-2005.All rights reserved.
NULL
Started: 5:32:33 PM
Error:2011-01-0517:32:33.24
Code:0xC001700A
Source:
Description:The version number in the packageisnot valid.The version number cannot be greater than current version number.
EndError
Error:2011-01-0517:32:33.24
Code:0xC0016020
Source:
Description:Package migration from version 3 to version 2 failed with error0xC001700A"The version number in the package is not valid. The version number cannot be greater than current version number.".
EndError
Error:2011-01-0517:32:33.24
Code:0xC0010018
Source:
Description:Error loading value "<DTS:Property xmlns:DTS="www.microsoft.com/SqlServer/Dts"
DTS:Name="PackageFormatVersion">3</DTS:Property>"from node "DTS:Property".
EndError
Couldnot load package"D:\SSIS Migrated packages\SetupUpTimeReport\SetupUpTimeReport\SetUpTimeReport.dtsx" because of error0xC0010014.
Description:Thepackage failed to load due to error 0xC0010014"One or more error occurred. There should be more specific errors preceding this one that explains the details of the errors. This message is used as a return value from functions that encoun
ter errors.".This occurswhenCPackage::LoadFromXML fails.
Source:
Started: 5:32:33 PM
Finished:5:32:33 PM
Elapsed: 0.11 seconds
NULL
Please suggest.