I have a DTSX file that needs to have a parameterized query. The query occurs in the "DataFlowTask" here:
Which calls the data flow task here:
and the query:
The project builds - if I remove the parameter, it runs fine. However, I am having issues setting the parameter. I've tried probably a hundred combinations, including:
dtexec /f "D:\[location]\ExportOrdersWithParameter.dtsx" /set "\Package.Variables[OrderDate].Value";"1/1/2000"
dtexec /f "D:\[location]\ExportOrdersWithParameter.dtsx" /set "\Package.Variables[OrderDate].Value";"1/1/2000"
dtexec /f "D:\[location]\ExportOrdersWithParameter.dtsx" /set "\Package.Variables[User::OrderDate].Value";"1/1/2000"
dtexec /f "D:\[location]\ExportOrdersWithParameter.dtsx" /set "\Package.Variables[$Package::OrderDate].Value";"1/1/2000"
dtexec /f "D:\[location]\ExportOrdersWithParameter.dtsx" /set "\Package\DataFlowTask.Variables[$Package::OrderDate].Value";"1/1/2000"
dtexec /f "D:\[location]\ExportOrdersWithParameter.dtsx" /set "\Package\DataFlowTask.Variables[User::OrderDate].Value";"1/1/2000"
dtexec /f "D:\[location]\ExportOrdersWithParameter.dtsx" /set "\Package.Variables[OrderDate].Value;1/1/2000"
And all sorts of other combinations. There errors are a mix of "Process configuration failed to set the destination at the package path of ..." or "Package path referenced an object that cannot be found"
I'm totally lost - what am I missing?
Parameters
but you actually need to select a Variable. – TheEsnSiavashi