Condition in Loop behaves differently after upgrade to 9.9.7 - VisualCron - Forum

Community forum

Nick Weckman
2022-06-07T15:04:15Z
Running into an issue where the behavior of a Condition/Action in a loop is no longer functioning the same way. Here is my process in a nutshell:

1. grab a list of keys via SQL
2. for each key, run a stored procedure via SQL to create a payload
3. send out the payload via an HTTP task UNLESS the payload is blank, which I check through a condition on this task. If it IS blank, the condition has the Action of "On Match All, Don't wait, Next"
4. loop through steps 2 and 3 for each value in 1.
5. run an update via SQL

My issue is, that previously, before the upgrade, if a payload was blank, and therefore my HTTP task was skipped, it would go to the next value in step 1 and proceed as normal. No problem

Since the upgrade, if a payload is blank, it still skips the HTTP task, however, it does not go to the next value in step 1, instead it exits out of the loop and goes to step 5.

Thanks in advance for any help here. Happy to provide more info if it helps.
Pavel Shalamitski
2022-06-28T07:55:37Z
Hi!

Could you please drop a line on support@visualcron.com with some screenshots regarding this issue?
NeuVisualCron
2022-06-28T16:41:42Z
I have this issue too in 9.9.8. Did you have a work around that worked?
Pavel Shalamitski
2022-06-30T14:28:21Z
Hi!
We are still on this issue, I'll post an update here.
Michael Fjellström
2022-07-18T12:10:21Z
Originally Posted by: Nick Weckman 

Running into an issue where the behavior of a Condition/Action in a loop is no longer functioning the same way. Here is my process in a nutshell:

1. grab a list of keys via SQL
2. for each key, run a stored procedure via SQL to create a payload
3. send out the payload via an HTTP task UNLESS the payload is blank, which I check through a condition on this task. If it IS blank, the condition has the Action of "On Match All, Don't wait, Next"
4. loop through steps 2 and 3 for each value in 1.
5. run an update via SQL

My issue is, that previously, before the upgrade, if a payload was blank, and therefore my HTTP task was skipped, it would go to the next value in step 1 and proceed as normal. No problem

Since the upgrade, if a payload is blank, it still skips the HTTP task, however, it does not go to the next value in step 1, instead it exits out of the loop and goes to step 5.


Hi!

Could you please try this workaround for your issue:

Create job variable
Add Set job variable task being the first task in the loop, set variable to CurrentXValue of the loop. Please make sure "Translate value to constant" is checked.
Use job variable for the condition.

Thanks in advance for any help here. Happy to provide more info if it helps.



bfreer3523
2022-08-03T22:25:30Z
I ran into the same issue in 9.9.7. One workaround is to move the task that has a condition into a separate job, and then call that job from within the loop instead, and pass any variables needed as parameters. If the condition is in a separate job it doesn't break the loop when the condition fails.
thomas
2022-08-04T06:40:13Z
It is ok with workarounds if one is forced to use this version ov VC, but this issue has to be fixed. The behaviour of conditions cannot change between version. It can break logic everywhere in a production system.
Michael Fjellström
2022-08-04T07:44:09Z
Yes - please upgrade to the latest version to fix this.
thomas
2022-08-04T14:01:18Z
Great! didn't see it had been fixed
bfreer3523
2022-08-08T01:06:11Z
I tried upgrading to 9.9.8 but I'm still seeing the same behavior. Specifically my job is attempting to copy files from one folder to another with each pass through the loop. If any files were copied, then an e-mail is sent with a list of the files. The issue is that if the condition on the e-mail task isn't met, the loop is stopped, unless the e-mail task is called from a separate job.
Michael Fjellström
2022-08-09T08:53:43Z
Originally Posted by: bfreer3523 

I tried upgrading to 9.9.8 but I'm still seeing the same behavior. Specifically my job is attempting to copy files from one folder to another with each pass through the loop. If any files were copied, then an e-mail is sent with a list of the files. The issue is that if the condition on the e-mail task isn't met, the loop is stopped, unless the e-mail task is called from a separate job.



In which version does this work without issues for you?
Please create a simplified job that can reproduce your issue and mail it to support@visualcron.com
Scroll to Top