Page 1 of 1

Entering On Error action for Rename task

Posted: Tue Jul 09, 2013 8:48 am
by monahanks
I am calling a generic project that will rename a file from one name to another by passing in the old and new file names as variables. I also pass a variable called Failed to designate a Pass/Fail status. However, when I try to add the On Error section of the rename to set the variable Failed to YES to be passed back, I get the error: [8003 - Control file] Invalid value 'setvariable:${Failed eq YES}' for attribute 'onError' in element 'rename'

Why am I not able to add the OnError condition? I have used "eq", "=" and other syntaxes, so I don't think it is a syntax error.

We are version 4.0

Re: Entering On Error action for Rename task

Posted: Tue Jul 09, 2013 9:06 am
by Support_Rick
monahanks,

Try changing your syntax to the following:

onError="setVariable:cmdError=YES"

Re: Entering On Error action for Rename task

Posted: Tue Jul 09, 2013 9:19 am
by monahanks
Thanks Rick. Does this mean "Failed" is a reserved word or something? Can I pass "cmdError" back to the calling project as a variable parameter?

Re: Entering On Error action for Rename task

Posted: Tue Jul 09, 2013 9:22 am
by monahanks
Never mind my last reply. I misunderstood what you meant. I have it working (at least compiling correctly) now using the Failed variable. .