SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Problem with script component on migration from SSIS 2008 to 2012


Problem with script component on migration from SSIS 2008 to 2012

Author
Message
padre
padre
SSC Journeyman
SSC Journeyman (78 reputation)SSC Journeyman (78 reputation)SSC Journeyman (78 reputation)SSC Journeyman (78 reputation)SSC Journeyman (78 reputation)SSC Journeyman (78 reputation)SSC Journeyman (78 reputation)SSC Journeyman (78 reputation)

Group: General Forum Members
Points: 78 Visits: 308
Hello,

I have an SSIS script component that picks the first row from each group and passes that to the output. This component was developed first in 2005 and then migrated to 2008. That worked fine. The code is basically:

If (Row.Keys <> PreviousKeys)
Row.DirectRowToOutput0()
End If
PreviousKeys = Row.Keys

Now that I am migrating to 2012 I having issues. Downstream from the script component it is the right-side input to a MERGE JOIN. I'm getting this error from the MERGE JOIN:
> Input columns must have output columns. There are input columns with a
> usage type of read-only that do not have associated output columns.

The only thing I found that sets columns to read-only is in the input column selection of my script task. When I change the script so that it just sets a boolean field on the row to TRUE when the keys change the message goes away. I'm taking this as a confirmation that the script component was the source of read-only problem. Now I have a new problem though. With this change to the script the MERGE JOIN now thinks that the data are unsorted.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search