Entering On Error action for Rename task

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
4 posts Page 1 of 1

monahanks

Posts: 41
Joined: Wed Mar 30, 2011 10:19 am

Post by monahanks » Tue Jul 09, 2013 8:48 am
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

Support_Rick

Support Specialist
Posts: 590
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

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

Try changing your syntax to the following:

onError="setVariable:cmdError=YES"
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696

monahanks

Posts: 41
Joined: Wed Mar 30, 2011 10:19 am

Post by monahanks » Tue Jul 09, 2013 9:19 am
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?

monahanks

Posts: 41
Joined: Wed Mar 30, 2011 10:19 am

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