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

SSIS 2012 script component won't complete, spins indefinitely

$
0
0

Hi All,

Q: Why won't my SSIS Script Component fail or complete successfully?  It spins indefinitely, never passing any rows through nor throwing any error.  It literally ran for the last 40+ hours.

Background: I'm working through an Apress book, "Extending SSIS with .NET Scripting."  In chapter two, we learn how to add a script component that generates a unique key value for each row by incrementing an integer variable by one and then writing that value to an output column, "BikeID," which I created in the "Inputs and Outputs" screen under Output 0/Output Columns.

I realize this isn't a C# forum, but I thought others might've run into the problem of a Script Component never completing.  Any advice you may have is likely to be helpful.

Thanks,
Eric B.

public class ScriptMain : UserComponent
{
int rowNumber = 0;
public override void Input0_ProcessInputRow(Input0Buffer Row)
{
// Increment value
rowNumber++;
// Assigning value to new output column
Row.BikeId = rowNumber;
}
}


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>