Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

getting error on parameter mappings

$
0
0

Hi we run 2017 std.   I chose "parameter mapping" instead of "result set" in my exec sql task to map 22 returned cols (from a tested query that returns one row) to 22 vars.

I'm hoping I can salvage what I did.

I have result set = "Single row".    I have "Direction" on each mapping = "Output".  I have all data types in the param mapping dialogue as varchar.    In each Parameter Name I specifically listed the column name returned from the query.  I left all parameter sizes = -1.  All of the vars are defined to ssis as string.

The error i'm getting looks like this...

[Execute SQL Task] Error: There is an invalid number of result bindings returned for the ResultSetType: "ResultSetType_SingleRow".

Is there an easy way to deal with this?  I tried setting result set = "None" and got this error...

[Execute SQL Task] Error: Executing the query ";with vertical as
(
select   xxx.yyyyyyyy ,
     ..." failed with the following error: "Parameter name is unrecognized.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

I checked every Parameter Name in the Parameter Mapping dialogue and they all match the col names returned by the query.  There is a cte involved.  It returns organization, low date cast as varchar , high date cast as varchar.  The query essentially pivots this data so every org's low and high come out on one row with col names looking pretty much like LOWxxx and HIGHxxx where xxx is the org abbreviation.   

 


Viewing all articles
Browse latest Browse all 24688

Trending Articles