Hi,
This is for SSIS 2008 R2. I have the following code in a Script Task in the Package OnError Events.
public void Main() { int errorCount = (int)Dts.Variables["User::pmfErrorCount"].Value; errorCount++; Dts.Variables["User::pmfErrorCount"].Value = errorCount; Dts.TaskResult = (int)ScriptResults.Success; }
The package just hangs on this task and then errors out after about 20 secs. I don't really know C# that well so that could be the issue. Basically just trying to increment a variable, which is INT32, with 1 to track the number of errors.
Thanks Steve