-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Manikandan
Message 1 in Discussion
Hi,
I am executing a DTS package from .NET using CSharp. Package is executing
fine but the problem I am facing is I am not able to trap the errors that the
DTS package is throwing.
After executing my DTS package I have the following code,
DTS.DTSStepExecResult
pStepResult;
pStepResult =
DTS.DTSStepExecResult.DTSStepExecResult_Failure;
int
ErrorCode;
string ErrorSource;
string
ErrorDescription;
string
ErrorHelpFile;
int
ErrorHelpContext;
string
ErrorIDofInterfaceWithError;
for(int i = 1; i <=
oPackage.Steps.Count; i++)
{
if
(oPackage.Steps.Item(i).ExecutionResult ==
pStepResult)
{
oPackage.Steps.Item(i).GetExecutionErrorInfo(out
ErrorCode, out ErrorSource, out ErrorDescription, out ErrorHelpFile, out
ErrorHelpContext, out
ErrorIDofInterfaceWithError);
Console.WriteLine(oPackage.Steps.Item(i).Name
+ " failed" + "\n" + ErrorSource + "\n" +
ErrorDescription);
}
}
Even if there is some error the loop is not getting executed and its coming
out successfully. What could be the problem.
Thanks in advance.
Regards
P.S. Manikandan ,
CGI Information Systems,
Tel:
091-080-28521224 Ext-291,
[EMAIL PROTECTED]
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]