Re: ActiveX Task - Status = Failure or Success
- From: "Darren Green" <darren.green@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 21 Oct 2005 12:47:45 +0100
I'd go for a simpler approach. Let it fail, and then exit the package. Use a
Job step retry to implement the 15 minute wait. Overall the job result
should be success.
If you must, you can mess around with workflow, but you cannot change the
result, you must prevent the failure in the first place. Take a look at
these for some ideas.
How can I check if a file exists?
(http://www.sqldts.com/default.aspx?211)
Skip the execution of an individual Task
(http://www.sqldts.com/default.aspx?214)
--
Darren Green
http://www.sqldts.com
http://www.sqlis.com
"Jon Derbyshire" <JonDerbyshire@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:82C722EB-5AF1-4EB8-AA4C-8CB5D409B82C@xxxxxxxxxxxxxxxx
> Hi,
>
> I have a DTS that checks to see if a file exists.
>
> The first ActiveX Script doe sthe initial check, and if not found reports
> failure.
>
> On failure of that task, I have a Execute SQL Task to wait 15 minutes,
> which
> then on completion runs a second ActiveX Script to set the first Script
> back
> to waiting.
>
> This creates a loop scenario.
>
> However, if the first script fails to find the file, (i.e. reports
> failure),
> but then finds it on the second loop (i.e. reports success), on completion
> of
> the DTS the script shows as though it filed, although it obviously
> didnt...
>
> How can I make DTSTaskExecResult_Success actaully report success after an
> initial failure???
>
> Jon
.
- Prev by Date: Re: SqlServer 2005: Want to set up SSIS job to import flat file data into 18 tables on a nightly basis
- Next by Date: Re: How do I trackdown/debug COMException -2147220441
- Previous by thread: DTS won't run as scheduled job (DTSStepExecStat_Completed)
- Next by thread: Re: How do I trackdown/debug COMException -2147220441
- Index(es):
Relevant Pages
|