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

Package hangs on ScriptTask in OnError

$
0
0

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


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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