When executing an SSIS package, the following error appears:
[OLE DB Source [83]] Error: The SQL command requires a parameter named "@Sales_person", which is not found in the parameter mapping.
[SSIS.Pipeline] Error: OLE DB Source failed the pre-execute phase and returned error code 0xC0207014.
Below is the screenshot of my OLE DB Source editor
I do see Param direction tab in Set Query parameters, how is that used? In my case will I be using Input
or Output
or InputOutput
After searching i didn't find a solution for this issue that worked for me. Ther are many suggestions like adding SET NOCOUNT ON
before the execute command. Below some related links:
You can do a workaround
Declare a SSIS variable (assuming @[User::Query]
)
Set @[User::Query]
property EvaluateAsExpression
= True and use the following expression
"EXEC [dbo].[GetDales_Person_data] " + @[User::Sales]
if @[User::Sales]
is a string use the following
"EXEC [dbo].[GetDales_Person_data] '" + @[User::Sales] + "'"
Then In OLEDB Source
use SQL Command from variable
and select @[User::Query]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With