Hello All,
I've generated a Job with 5 tasks which wrote the log into a local text file.... as last step I've defined Email task whichsend to a specific user this log attached in order to check results of all tasks status. but executing the job the last Email task return the follow error msg
Error when trying to add attachment, err: The process cannot access the file 'C:\VisualCronLog\Nielsen Update DB.log' because it is being used by another process.
the message is clear but how can I send previous Tasks info/results store into my log File?
generally I use dynamic log File, here's an example
File Notification
C:\VisualCronLog\{JOB(Active|Name)}.log
Notification Message example:
>>> Task Name: [{TASK(Active,Order)}] {TASK(Active|Name)} <<<
Start Time: {DATEFORMAT(dd/MM/yyyy H.mm)}
Trigger: {TRIGGER(Active|LastTrigger|Desc)}
TaskExitCode: {TASK(Active,ExitCode)} - {TASK(Active,ExitCodeDesc)}
TaskOutput: {TASK(Active,StdOut)} :: {TASK(Active,StdErr)}
List of file downloaded/uploaded: {TASK(Active,Result.DownloadedFilesNames)} / {TASK(Active,Result.UploadedFilesNames)}
TaskResult: {TASK(Active,Result)}
JobResult: {JOB(Active,Result)}
Do you have any suggestions or work around for this scenario?
thanks a lot
Edited by moderator
2011-12-29T08:13:45Z
|
Reason: added solved to title