I have one DTS package where I shoot mails through ActiveX script in case of any Step/Task gets fails. Here I am able to get the Step details like Name, Description etc., in the Mail body.
However I want to extend this functionality to return the exact/complete Step/Task error in Mail body. I found DTS Step object has GetExecutionErrorInfo method which return the compete error information like ErrorCode, ErrorDescription, ErrorSource etc. So I tried to implement it into my DTS ActiveX script. Further I found I can not pass variables directly to this method/function, these needs to be converted, so finally I tried the below code:
pPkg.Steps(i).GetExecutionErrorInfo CLng(ErrCode), CStr(ErrSource), CStr(ErrDescription)
It get excuted well, but in vain, it does not return anything even if steps get fails.
Can anybody share your expert comments on this?
Thanks in advance,