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.


sglaze
2009-07-20T16:30:45Z
Hi,

I am trying to use a condition that checks the contents of a file and if the contents do not match the name of the computer, then do not run the job. The condition checks the file, correctly determines the file does not contain the name of the computer, but then continues to run the job. I am using Visualcron 5.1.6. Please find below the conditions.xml file and some of the log entries from this job.

Please let me know if any extra information is needed.

Cheers,
Spencer



<ConditionSetClass><Conditions><ConditionClass><ConditionType>File</ConditionType>
<CFile><CheckType>FileContent</CheckType><MatchType>MatchIs</MatchType><FilePath>\\mant15\treasury\systems\vc.txt</FilePath>
<Credential>a74a645b-dcef-42d7-9d53-96ce99cff44b</Credential>
<Content>WXP</Content></CFile>
<Id>5ee955f0-39e5-46b8-99bf-30273af95f03</Id><SetId>034dd216-9064-4cd5-8e03-6d5676d77dba</SetId>
<Active>true</Active><Description>check contents of vc condiont</Description></ConditionClass>
</Conditions><ActionMatchAll><ActionType>ActionContinue</ActionType><WaitType>NoWait</WaitType>
<WaitHours>0</WaitHours><WaitMinutes>0</WaitMinutes><WaitSeconds>0</WaitSeconds><JobId /><TaskId /></ActionMatchAll>
<ActionMatchAny><ActionType>ActionContinue</ActionType><WaitType>NoWait</WaitType><WaitHours>0</WaitHours><WaitMinutes>0</WaitMinutes><WaitSeconds>0</WaitSeconds>
<JobId /><TaskId /></ActionMatchAny>
<ActionMatchNone><ActionType>ActionContinue</ActionType><WaitType>NoWait</WaitType><WaitHours>0</WaitHours><WaitMinutes>0</WaitMinutes><WaitSeconds>0</WaitSeconds><JobId /><TaskId /></ActionMatchNone>
<ActionMatchError><ActionType>ActionRetry</ActionType><WaitType>Wait</WaitType><WaitHours>0</WaitHours><WaitMinutes>10</WaitMinutes><WaitSeconds>0</WaitSeconds><JobId />
<TaskId /></ActionMatchError><Id>034dd216-9064-4cd5-8e03-6d5676d77dba</Id><Description>check contents of vc.txt condiction set</Description><ExtendedLogging>true</ExtendedLogging>
</ConditionSetClass>


7/20/2009 10:15:55 AM Debug Running Condition Set: 'check contents of vc.txt condiction set' for Job: failover checker
7/20/2009 10:15:55 AM Info User "VisualCron Default Admin" - Ran Job: failover checker
7/20/2009 10:15:55 AM Debug File Condition (Content->MatchIs) returned: NoMatch (\\mant15\treasury\systems\vc.txt)
7/20/2009 10:15:55 AM Debug Condition Set (Job) returned: MatchNone-> ActionContinue
7/20/2009 10:15:55 AM Debug Running Condition Set: 'check contents of vc.txt condiction set' for Task: read in vc.txt file
7/20/2009 10:15:55 AM Debug File Condition (Content->MatchIs) returned: NoMatch (\\mant15\treasury\systems\vc.txt)
7/20/2009 10:15:55 AM Debug Condition Set (Task) returned: MatchNone-> ActionContinue
Sponsor
Forum information
Support
2009-07-20T18:30:49Z
Perhaps it is something wrong with the Credential that you use. Please use the File read Task together with your Credential to verify that you both can read the file and that it works.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
sglaze
2009-07-20T18:49:28Z
Thanks for your reply. I should have also noted that I changed the file content to be the "match" and it logged a successful match. If you notice in the log, it says "NoMatch" but then uses the "ActionContinue". It should be using the "ActionExit" step on NoMatch.

Cheers,
Spencer
sglaze
2009-07-22T14:22:22Z
After some further tickering, updating to .NET 3.5, and deleting temp files - the problem seems to have gone away.

Not sure what the fix was but no longer an issue.

Cheers,
Spencer
Scroll to Top