Sequencer Aborting

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
sajidkp
Participant
Posts: 114
Joined: Thu Apr 30, 2009 12:17 am
Location: New Delhi

Sequencer Aborting

Post by sajidkp »

Hi,

When my run a sequencer job which runs two job its is aborting with the following error

" Controller problem: Unhandled failure (1) encountered calling routine DSX.UTILITYMESSAGETOLOG"

i have added routine activity which has to be called after successfull completion of job . the job is finished successfully but sequencer is aborted . Please somebody help me
Regards,
Sajid KP
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You could always help yourself - an exact search for "Controller problem: Unhandled failure" will show you this has been asked and answered many times here.
-craig

"You can never have too many knives" -- Logan Nine Fingers
banactp
Participant
Posts: 52
Joined: Tue Feb 22, 2005 2:55 pm

Post by banactp »

Or, you could instead be helpful and answer the question so that those who have encountered this irritating flaw in the product (WTH does a simple, built-in utility routine that can't possibly fail return a code that's interpreted as an abnormal result anyway?) don't have to waste many precious minutes of their lives wading through dozens of potentially irrelevant discussions looking for an answer to a problem that shouldn't exist in the first place.

Are you too baffled as to why you have to concern yourself with "Routine DSX.UTILITYMESSAGETOLOG did not finish OK, return code = '1'" causing your sequence to abort? Still scratching your head as to why a simple request to print a message in the job log produces any kind of warning or error at all? Have you stumbled across this thread by way of Google or the Search function, perhaps desparately searching for an answer?

The solution I prefer is to add a custom condition on the trigger out of the Routine Activity that contains the call to UtilityMessageToLog. The condition is:

Code: Select all

YourRoutineActivityNameGoesHere.$ReturnValue < 2
You can use any value of 2 or greater to let you proceed past the return code of '1' that UtilityMessageToLog seems to prefer to put out. Now of course, you should not have to do this and your sequence log will still be left with a warning message in it, but at least it will not abort. Complete the bandage by adding an "Otherwise" trigger to the Routine Activity and then routing both triggers to an "Any" sequencer stage.
Last edited by banactp on Fri Sep 03, 2010 11:33 am, edited 1 time in total.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Oh, good lord. By contrast, I should waste "precious minutes of my life" repeating something over and over when a search would turn up the answer? Please.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply