Page 1 of 1

Unhandled failure encountered calling routine

Posted: Mon Oct 01, 2007 3:18 am
by kausmone
Hi,

I am calling a server routine using a sequencer. The routine (named GNSJobRunOpt) executes a set of jobs by reading the list of jobs to run from a sequential file. When I executed the sequencer, it aborted giving the following error in the Director log as "Unhandled failure (21) encountered calling routine DSU.GNSJobRunOpt"

This error is being received after the last job has been executed. Note that each of the jobs that the routine executes is getting called successfully and runs successfully.

Has anyone encountered this before? I am not sure if this a very specific error, could be a very generic one.

Thanks,
Kaus

Posted: Mon Oct 01, 2007 4:34 am
by ray.wurlod
Do you make sure that the Routine returns 0 (if you are using an OK or Failure trigger anything but zero is regarded as failure)? If you do need to return specific values, make sure that you handle these with triggers, rather than relying on the default (which seeks a zero versus non-zero return value).

Posted: Mon Oct 01, 2007 4:54 am
by kausmone
You're right Ray. I hardcoded zero as the return and it worked :)

Thanks so much!

ciao,
kaus