all groups > sql server dts > november 2004 >
You're in the

sql server dts

group:

Reset Failed Status on DTS


Reset Failed Status on DTS Nathan Truhan
11/29/2004 6:37:06 AM
sql server dts:
Hello,

I have written a couple of DTS packages that pull information from an FTP
web site to a directory on the local SQL server then imported into the
database and processed. Seems fairly simple, however. The files are placed
in the FTP server from our Mainframe, and occationally, they are 0 bytes,
which SQL cannot process properly. Also, the program I am using to download
them is called CURL, which on 0 byte files, does not actually create the
file, but still returns a successfull status.

To solve this problem, I have wrote a small vbs module that executes after a
successfull download. This module will check the download directory for the
needed files. If they are there, it returns successfull and a branch
executes that imports and processes the data and emails out a status report.
If any of the files are missing, it fails, which triggers another path, that
does not import any data, but does send out a status email indicating no
new/changed records.

This leads to a situation. Every time the VBS fails, the Job I have
scheduled to run it also fails, even though it still sends out the no data
emails and everything else runs fine.

Is there anyway I can reset the failed status back to successfull in the
step following the failed branch for the vbs module, that way if it does
still fail it was on a step following that, such as sending the email.

Thank you,
Re: Reset Failed Status on DTS Nathan Truhan
11/29/2004 10:10:49 AM
Darren,

This is exactly what I needed. Thank you. I will test later and let you
know how it works.

Nathan

[quoted text, click to view]
Re: Reset Failed Status on DTS Darren Green
11/29/2004 5:41:08 PM
You cannot reset the status, but by using workflow scripts you can prevent
this from happening. Here is a similar example-

How can I check if a file exists?
(http://www.sqldts.com/default.aspx?211)


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

[quoted text, click to view]

AddThis Social Bookmark Button