conditional delay is not working

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

suncds

Posts: 3
Joined: Wed Jul 06, 2016 2:09 pm

Post by suncds » Wed Jul 06, 2016 2:43 pm
I've profiled a delay in my project, to be conditionally executed on the following:

(${index} lt 3) and ('{$transferError}' eq '1')

When I place the project in debug mode, and review the variables, just before the delay,

transferError = '1'
index = 1

(index is a counter defined in a for loop, advanced tab)

A partial transcript of the log follows:

Jul 6, 2016 3:39:47 PM INFO Setting value of variable 'transferError' to ''1''

Jul 6, 2016 3:39:54 PM INFO Skipping task 'delay' as the condition "(${index} lt 3) and ('{$transferError}' eq '1')" was not met

Jul 6, 2016 3:40:01 PM INFO Executing task 'setVariable 2.0'

Jul 6, 2016 3:40:01 PM WARN Variable 'transferError' was replaced with ''0''.


Any ideas of what I may be missing?

Support_Rick

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

Post by Support_Rick » Wed Jul 13, 2016 4:33 pm
suncds,

Please look at the formatting of your condition. Change this:

(${index} lt 3) and ('{$transferError}' eq '1')

to this:

${ (index lt 3) and ( contains( transferError, '1' ) }

and try again.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
2 posts Page 1 of 1