I wrote more than 15 validation steps in script task using vb.net. Find the below sample scripts .If this condition passed more than 50K records continously my package itself getting hanged up.
If (Row.Code.ToString <> "-1" And Row.Code.ToString <> "9" And Row.Code.ToString <> "10") Then Row.IsSkipped = True Row.ErrorDesc = "Invalid Code Field!" Return End If
Find the images