Hi,
I added this line of code to my error handler script, in red.
User:
criptError is a package-level string variable
User:
criptError has a value assigned to it when another script encounters an error condition (which I define)
I added "User:
criptError" as a read-only variable to the error handler script task.
Public Sub Main() Dim messages As Collections.ArrayList Try
messages =
CType(Dts.Variables("errorMessages").Value, Collections.ArrayList) Catch ex As Exceptionmessages =
New Collections.ArrayList() End Try
messages.Add(Dts.Variables(
"SourceName").Value.ToString)messages.Add(Dts.Variables(
"ErrorDescription").Value.ToString())messages.Add(Dts.Variables(
"scriptError").Value.ToString)
Dts.Variables("errorMessages").Value = messages
Dts.TaskResult = Dts.Results.Success
End Sub
Now, when I run the package, and an it encounters an error, it task just hangs, that is, it stays yellow instead of turning red... if I remove the line in red above, it works ok again.
Why would this line cause a problem
Thanks