hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Variable not evaluating in one task

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Variables and Regular Expressions
View previous topic :: View next topic  
Author Message
VincentMagnotta



Joined: 28 Jul 2008
Posts: 46

PostPosted: Wed Oct 01, 2008 3:45 pm    Post subject: Variable not evaluating in one task Reply with quote

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
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Thu Oct 02, 2008 8:53 am    Post subject: Reply with quote

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
View user's profile Send private message
VincentMagnotta



Joined: 28 Jul 2008
Posts: 46

PostPosted: Thu Oct 02, 2008 8:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Thu Oct 02, 2008 9:14 am    Post subject: Reply with quote

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
View user's profile Send private message
VincentMagnotta



Joined: 28 Jul 2008
Posts: 46

PostPosted: Thu Oct 02, 2008 9:23 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Variables and Regular Expressions All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group