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.

Entering On Error action for Rename task

Postby 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
monahanks
 
Posts: 27
Joined: Wed Mar 30, 2011 10:19 am

Re: Entering On Error action for Rename task

Postby Support_Rick » Tue Jul 09, 2013 9:06 am

monahanks,

Try changing your syntax to the following:

onError="setVariable:cmdError=YES"
Rick Elliott
Sr. Product Specialist
(402) 944.4242
(800) 949-4696
Support_Rick
Support Specialist
 
Posts: 217
Joined: Tue Jul 17, 2012 2:12 pm

Re: Entering On Error action for Rename task

Postby 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: 27
Joined: Wed Mar 30, 2011 10:19 am

Re: Entering On Error action for Rename task

Postby 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. .
monahanks
 
Posts: 27
Joined: Wed Mar 30, 2011 10:19 am


Return to Community Forum

Who is online

Users browsing this forum: Google [Bot] and 2 guests