dbTalk Databases Forums  

Custom DTS Task Logging/Status

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Custom DTS Task Logging/Status in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rob
 
Posts: n/a

Default Custom DTS Task Logging/Status - 08-10-2004 , 09:14 AM






I've written a custom DTS task in .NET, and it seems to be working
fine. Now I'm trying to complete the logging and I'm able to write
details to the log and store them to SQL Server, no problem. However,
when I view the log, the 'status' of the detail records has a red 'X'
in it, and the Error Code reports "Failed" even though the overall
package status is successfull.

I've used both oLog.WriteTaskRecord(errNo, msg)--where errNo is 0 as
long as there is no current error) and oLog.WriteStringToLog(msg), and
the result is the same.

It's a small detail, but I'd rather not have the detail steps
reporting failed if they were indeed successfull.

Anyone know what I'm doing wrong?

Thanks in advance...

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Custom DTS Task Logging/Status - 08-10-2004 , 10:40 AM






From memory you need to set the error number to 1. I know it doesn't make
any sense, I had exactly the same issue.

--
Darren Green
http://www.sqldts.com

"Rob" <robs (AT) asrcorp (DOT) com> wrote

Quote:
I've written a custom DTS task in .NET, and it seems to be working
fine. Now I'm trying to complete the logging and I'm able to write
details to the log and store them to SQL Server, no problem. However,
when I view the log, the 'status' of the detail records has a red 'X'
in it, and the Error Code reports "Failed" even though the overall
package status is successfull.

I've used both oLog.WriteTaskRecord(errNo, msg)--where errNo is 0 as
long as there is no current error) and oLog.WriteStringToLog(msg), and
the result is the same.

It's a small detail, but I'd rather not have the detail steps
reporting failed if they were indeed successfull.

Anyone know what I'm doing wrong?

Thanks in advance...



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.