Hi Support
Pushing the boundaries with VC I have come across an 'issue' with the Write File task.
I am reading a 2 record text file with the Read File Task. The text file has a VC Variable coded in it as follows:
name=test job for reading vars from template
file={TASK(PrevTask,StdOut)}
After the Read File task reads this file, when I show the STDOUT from the task in the variables window, it shows (correctly):
name=test job for reading vars from template
file=\\10.20.40.71\Proout_DATA\@VC\log\template.txtSo you can see the record '
file={TASK(PrevTask,StdOut)}' has been changed correctly to '
file=\\10.20.40.71\Proout_DATA\@VC\log\template.txt' which I would expect.
Now when I write this Prevtask STDOUT to another file with the Write File task, the results are very strange. The file is being written with the contents as:
name=test job for reading vars from template
file=name=test job for reading vars from template
file=name=test job for reading vars from template
file=name=test job for reading vars from template
file=
So the First record is written out correctly, but then the next 4 records are re-writing the output from the first record - almost as if the First Record is becoming the STDOUT of the previous task. And why is it writing it 4 times (with the last one empty) when there are only 2 records in STDOUT from the previous task?
If I change the file I read so it doesn't use a variable but just a hardcoded file name, it works fine.
Am I expecting too much from the ability to translate variables from text files?
Cheers
Andy
Edited by user
2011-11-13T12:51:55Z
|
Reason: Not specified