Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


MgSam
  •  MgSam
  • No customer Topic Starter
2016-08-04T16:12:38Z
I have a foreach loop set up that splits a delimited variable and is supposed to loop over the resulting tokens. The delimited variable has two tokens and the loop does indeed run twice, however, none of the loop variables seem to be available while its running. I'm trying to inspect them using the Popup and it says [Current context (running Task) is not in a loop]. Of course, when I click ok, I get the same popup again, since it IS in a loop.

Popup message definition:
Loop Name: {LOOP(Name)}
Loop Type: {LOOP(LoopType)}
Preset X Value: {LOOP(PresetValueX)}
Preset Y Value: {LOOP(PresetValueY)}
Current Y Value: {LOOP(CurrentValueY)}

Result:
Popup no loop variable.PNG

What am I doing wrong?

Sponsor
Forum information
thomas
2016-08-05T11:23:08Z
Can you add some pics of the actual job you have set up? It's hard to see what is wrong given the current info

Thomas
Support
2016-08-05T12:13:46Z
It sounds like that popup is not in the loop. I have exported a Job that should work. Please note that you cannot preview a popup in a Task with Loop Variables.

  loopJob.zip (3kb) downloaded 55 time(s).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
MgSam
  •  MgSam
  • No customer Topic Starter
2016-08-05T13:21:47Z
Job variables:
Job variables.PNG

Job tasks:
Job Tasks.PNG

Loop config:
Loop config.PNG

Set variable config:
Set Variable.PNG

As you can see, the popup is in the loop.
Support
2016-08-08T21:40:39Z
Please try our test Job we attached before and compare with yours.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
MgSam
  •  MgSam
  • No customer Topic Starter
2016-08-10T15:02:03Z
Originally Posted by: Support 

Please try our test Job we attached before and compare with yours.



The job you attached is not like the job I described as I'm using a foreach loop not a for loop, but even so, the example job still doesn't work. If you try running the job you attached it will run forever, because the popup is sent to the VisualCron system group rather than Administrators or Viewers. When changing the target to Administrators as it should be, the popup displays but again says it can't access the loop variables.

VisualCronExampleJobAlsoFails.PNG
Support
2016-08-11T06:31:52Z
Please export and attach the Job to this post.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top