Page 1 of 1

Execute Command Activity Error

Posted: Mon Jan 10, 2011 7:43 am
by reddy82
Hi,

We are using the Execute Command Activity in the sequence. The activity copy the files from one path to another path

If the files not exists in the path.. it shows the warning as
"Controller problem: Unhandled failure (1) encountered executing command cp"

Now my question is:

If the files exists in the path
then process
else we need to write a specific return code(Eg:'xxxx') not the default error message(Unhandled failure )

your help is much appreciated.


Thanks,
Reddy

Posted: Mon Jan 10, 2011 7:48 am
by srinivas.g
Use Exit 1

Posted: Mon Jan 10, 2011 8:06 am
by Ravi.K
Try with,Command at command activity as follows.

cp /InputPath/File* /OutputPath/File* 2>/dev/null

Posted: Mon Jan 10, 2011 8:11 am
by chulett
Do an exact search here for "Controller problem: Unhandled failure", it has been discussed here quite a number of times.

Posted: Tue Jan 11, 2011 12:50 am
by reddy82
Hi,

I ran the job seqn with the above mention command.

this is the command we are using the seqn:

Command : cp
Parameters : /catalog/somtous/bdq-ext/sources-ext/SE000000* #G_REP_IN# 2>/dev/null;

we are getting the same warnings.files doen n't exists in the i/p path

Error is :

1) Executed: cp /catalog/somtous/bdq-ext/sources-ext/SE000000* /interfaces/0B51/in 2>/dev/null;
Reply=1
Output from command ====>

2) Command cp did not finish OK, reply = '1'

3) Controller problem: Unhandled failure (1) encountered executing command cp

in the third message we want to change as "xxxxx"

Please help

Posted: Tue Jan 11, 2011 1:40 am
by Ravi.K
To rid of the warning you need uncheck "Log warnings after activities that finish with status other that OK" at Sequencer properties.

After,to write custome messages take Nested condition check if the return value from the command activity is "1" then put one more command activity and use echo command to write your custome message.

This is one workaround.

Posted: Tue Jan 11, 2011 7:42 am
by reddy82
After adding the execute command activity

iam getting the error like this:

Controller problem: Unhandled failure (127) encountered executing command Echo 'xxxxxx'

i need to remove the 'Controller problem: Unhandled failure (127) encountered executing command Echo' also


please help

Posted: Tue Jan 11, 2011 7:52 am
by Ravi.K
I think you are using "Echo" instead of "echo". Try to use "echo"