| View previous topic :: View next topic |
| Author |
Message |
VincentMagnotta
Joined: 28 Jul 2008 Posts: 46
|
Posted: Wed Oct 01, 2008 3:45 pm Post subject: Variable not evaluating in one task |
|
|
I have a nested variable that is evaluating correctly in on task but not in another. If I run an Echo task with the variable it returns the correct value. If I use it in a Variable Monitor it fails.
The messages from the log are below.
| Quote: |
Oct 1, 2008 7:37:40 PM Echo - ShowCmdLine - Manual Run
Oct 1, 2008 7:37:40 PM Echo - ShowCmdLine - Start Instance = 5
Oct 1, 2008 7:37:40 PM Getting value of nested variable : PrevBusDay , value = 20080930
Oct 1, 2008 7:37:40 PM Getting final value of variable : FILE::SIZE::C:\automation\staging\portia.6015.20080930.zip
Oct 1, 2008 7:37:40 PM Echo - ShowCmdLine - 41379532
Oct 1, 2008 7:37:40 PM Echo - ShowCmdLine - End Instance = 5 , Exit Code = 0 , Runtime (ms) = 15
Oct 1, 2008 7:38:42 PM Variable monitor - IncomingZipFileSizeCheck_Janney - Manual Run
Oct 1, 2008 7:38:42 PM Variable monitor - IncomingZipFileSizeCheck_Janney - Start Instance = 4
Oct 1, 2008 7:38:42 PM Getting value of nested variable : PrevBusDay , value = 20080930
Oct 1, 2008 7:38:42 PM Getting final value of variable : $%FILE::SIZE::C:\automation\staging\portia.6015.20080930.zip%$
Oct 1, 2008 7:38:42 PM Variable '$%FILE::SIZE::C:\automation\staging\portia.6015.20080930.zip%$' does not exist. If this is a Task variable, it takes one successfull task run to create the variable.
Oct 1, 2008 7:38:42 PM Variable monitor - IncomingZipFileSizeCheck_Janney - variable = $%FILE::SIZE::C:\automation\staging\portia.6015.NEST-PrevBusDay-NESTEND.zip%$ , value null
Oct 1, 2008 7:38:42 PM Variable monitor - IncomingZipFileSizeCheck_Janney - End Instance = 4 , Exit Code = 2 , Runtime (ms) = 31
|
|
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Thu Oct 02, 2008 8:53 am Post subject: |
|
|
seems like the nest worked correctly.
the PrevBusDay variable was first parsed correctly to 20080930.
the logs indicate that the file portia..... .... 6015.20080930.zip does not exist. we will test this and get back to you.
Last edited by Robert on Thu Oct 02, 2008 9:03 am; edited 1 time in total |
|
| Back to top |
|
 |
VincentMagnotta
Joined: 28 Jul 2008 Posts: 46
|
Posted: Thu Oct 02, 2008 8:57 am Post subject: |
|
|
Nope, look at the Echo version: it shows the file size correctly. In the monitor it doesn't.
| Robert wrote: |
seems like the nest worked correctly.
the PrevBusDay variable was first parsed correctly to 20080930.
the logs indicate that the file portia..... .... 6015.20080930.zip does not exist. |
|
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Thu Oct 02, 2008 9:14 am Post subject: |
|
|
for the variable monitor task, do not enclose in $% and %$
use:
FILE::SIZE::C:\automation\staging\portia.6015.NEST-PrevBusDay-NESTEND.zip |
|
| Back to top |
|
 |
VincentMagnotta
Joined: 28 Jul 2008 Posts: 46
|
Posted: Thu Oct 02, 2008 9:23 am Post subject: |
|
|
Thanks, that's what I was missing apparently!
| Robert wrote: |
for the variable monitor task, do not enclose in $% and %$
use:
FILE::SIZE::C:\automation\staging\portia.6015.NEST-PrevBusDay-NESTEND.zip |
|
|
| Back to top |
|
 |
|