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


ErikC
  •  ErikC
  • Free support Topic Starter
2012-08-14T08:22:48Z
Hi,

I don't know if this is related to trigger fires twice  but this morning I encountered the folowing:

I have a job (A) which is triggerd by a directory rename action.
A job condition checks the last part of the dir name, it should be '*.ready'.
The 1st task in this job is renaming the directory again to '*.active'.
The 2nd step is uploading the content of this directory with an external tool.
The 3rd step is deleting the directory.

Meanwhile I have an other job (B) placing directories filled with files.
1st task is copy files to a new tempory directory.
2nd task is renaming this directory to '*.ready'.

Job (B) task 2 triggers job (A).

This all goes wel, whithout problems, but sometimes it goes wrong. Job (A) uses {TRIGGER(Active|LastTrigger|File.Result.Name)} to know the name of the directory. When job (B) runs twice, and the upload from job (A) task 2 is still running processing the 1st trigger, the 3rd step of job (A) is using the name of the 2nd tempory directory, but it should still use the 1st temporary directory name becouse job (A) is still in it's 1st run.

Does this make sence?

I have a log file which is showing the details (I filled in task results myself):

8/14/2012 6:35:37 AM	Info	Job (B) started: TripleA - ZV files naar Profnet2
8/14/2012 6:35:37 AM	Info	Task started: temp string (58872)
	QUEFG4HSEN
8/14/2012 6:35:37 AM	Debug	Breaking thread in RunJob: TripleA - ZV files naar Profnet2
8/14/2012 6:35:38 AM	Info	Task completed: temp string (58872)
8/14/2012 6:35:38 AM	Info	Task started: Verplaats de file naar de dropbox (58873)
	F:\Data\FTP\aaadump\toTGS\LVM\LVM_02_20120814-063355.csv	->	H:\Profnet2Dropbox\QUEFG4HSEN\LVM\Dagelijkse-Bestanden\20120813\LVM_02_20120814-063355.csv	OK
8/14/2012 6:35:38 AM	Info	Task completed: Verplaats de file naar de dropbox (58873)
8/14/2012 6:35:38 AM	Info	Task started: Add .Ready to begin upload (58874)
	H:\Profnet2Dropbox\QUEFG4HSEN > H:\Profnet2Dropbox\QUEFG4HSEN.ready
8/14/2012 6:35:38 AM	Info	Impersonation result 2: True
8/14/2012 6:35:38 AM	Info	Task completed: Add .Ready to begin upload (58874)
8/14/2012 6:35:38 AM	Info	Job (B) completed: TripleA - ZV files naar Profnet2

8/14/2012 6:35:38 AM	Debug	Breaking thread in RunJob: Profnet2 - Verwerk Dropbox
8/14/2012 6:35:38 AM	Info	Job (A) started: Profnet2 - Verwerk Dropbox
8/14/2012 6:35:38 AM	Debug	Running Condition Set: 'Profnet2Dropbox - Upload van Directory mag doorgaan' for Job: Profnet2 - Verwerk Dropbox
8/14/2012 6:35:38 AM	Debug	Variable Condition (String->RegExMatch) returned: Match
8/14/2012 6:35:38 AM	Debug	Condition Set (Job) returned: MatchAll-> ActionContinue
8/14/2012 6:35:38 AM	Info	Task started: rename ready folder to active (58875)
	H:\Profnet2Dropbox\QUEFG4HSEN.ready > H:\Profnet2Dropbox\QUEFG4HSEN.active
8/14/2012 6:35:38 AM	Info	Task completed: rename ready folder to active (58875)
8/14/2012 6:35:38 AM	Info	Task started: Run de upload2sharepoint tool (58876)
8/14/2012 6:35:38 AM	Debug	Breaking thread in RunJob: Profnet2 - Verwerk Dropbox

8/14/2012 6:35:39 AM	Info	Job (B) started: TripleA - ZV files naar Profnet2
8/14/2012 6:35:39 AM	Info	Task started: temp string (58877)
	7W1QGMU2N5
8/14/2012 6:35:39 AM	Info	Task completed: temp string (58877)
8/14/2012 6:35:39 AM	Info	Task started: Verplaats de file naar de dropbox (58878)
	F:\Data\FTP\aaadump\toTGS\LVM\Qlijst_LVM_20120814-063156.csv	->	H:\Profnet2Dropbox\7W1QGMU2N5\LVM\Dagelijkse-Bestanden\20120813\Qlijst_LVM_20120814-063156.csv	OK
8/14/2012 6:35:39 AM	Info	Task completed: Verplaats de file naar de dropbox (58878)
8/14/2012 6:35:39 AM	Info	Task started: Add .Ready to begin upload (58879)
	H:\Profnet2Dropbox\7W1QGMU2N5 > H:\Profnet2Dropbox\7W1QGMU2N5.ready
8/14/2012 6:35:39 AM	Info	Impersonation result 2: True
8/14/2012 6:35:39 AM	Info	Task completed: Add .Ready to begin upload (58879)
8/14/2012 6:35:39 AM	Info	Job (B) completed: TripleA - ZV files naar Profnet2

8/14/2012 6:35:39 AM	Debug	Breaking thread in RunJob: Profnet2 - Verwerk Dropbox
8/14/2012 6:35:44 AM	Info	Task completed: Run de upload2sharepoint tool (58876)
8/14/2012 6:35:44 AM	Info	Task started: Verwijder de dir uit de queue (58880)
8/14/2012 6:35:44 AM	Info	Impersonation result 2: True
8/14/2012 6:35:44 AM	Err	Exception in Task: Could not find a part of the path 'H:\Profnet2Dropbox\7W1QGMU2N5.active'.
8/14/2012 6:35:44 AM	Info	Task completed: Verwijder de dir uit de queue (58880)
8/14/2012 6:35:45 AM	Info	Job (A) completed: Profnet2 - Verwerk Dropbox

8/14/2012 6:35:46 AM	Info	Job (A) started: Profnet2 - Verwerk Dropbox
8/14/2012 6:35:46 AM	Debug	Running Condition Set: 'Profnet2Dropbox - Upload van Directory mag doorgaan' for Job: Profnet2 - Verwerk Dropbox
8/14/2012 6:35:46 AM	Debug	Variable Condition (String->RegExMatch) returned: Match
8/14/2012 6:35:46 AM	Debug	Condition Set (Job) returned: MatchAll-> ActionContinue
8/14/2012 6:35:46 AM	Info	Task started: rename ready folder to active (58881)
	H:\Profnet2Dropbox\7W1QGMU2N5.ready > H:\Profnet2Dropbox\7W1QGMU2N5.active
8/14/2012 6:35:46 AM	Info	Task completed: rename ready folder to active (58881)
8/14/2012 6:35:46 AM	Info	Task started: Run de upload2sharepoint tool (58882)
8/14/2012 6:35:46 AM	Debug	Breaking thread in RunJob: Profnet2 - Verwerk Dropbox
8/14/2012 6:35:51 AM	Info	Task completed: Run de upload2sharepoint tool (58882)
8/14/2012 6:35:51 AM	Info	Task started: Verwijder de dir uit de queue (58883)
	Deleted folder: H:\Profnet2Dropbox\7W1QGMU2N5.active
8/14/2012 6:35:51 AM	Info	Impersonation result 2: True
8/14/2012 6:35:51 AM	Info	Task completed: Verwijder de dir uit de queue (58883)
8/14/2012 6:35:51 AM	Info	Job (A) completed: Profnet2 - Verwerk Dropbox

The exception here is showing that the wrong variable content is used.

I asumed that during a job run the trigger variables are not changed. Am I wrong here?
It should use the QUEFG4HSEN, not the 7W1QGMU2N5.

Regards
Erik
Uses Visualcron since 2006.
Sponsor
Forum information
Support
2012-08-14T10:30:09Z
Discussion about this continued in chat.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top