# Get TFS history problem

**URL:** https://www.finalbuilder.com/forums/t/get-tfs-history-problem/2515
**Category:** Discussion
**Created:** [January 12, 2017, 9:46am UTC](https://www.finalbuilder.com/forums/t/get-tfs-history-problem/2515 "2017-01-12T09:46:17Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![dumarjo](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@dumarjo](https://www.finalbuilder.com/forums/u/dumarjo)
#### Post date: [January 12, 2017, 9:46am UTC](https://www.finalbuilder.com/forums/t/get-tfs-history-problem/2515/1 "2017-01-12T09:46:17Z")

</div>

Hi,  
  
I try to get my TFS history from FinaleBuilder 8 (trial) and I could not get it work reliably. I have done this action  
  
Reset Variable TFS\_HISTORY to default  
&nbsp; &nbsp;-\> Team Fondation History write to variable TFS\_HISTORY  
&nbsp; &nbsp; &nbsp; &nbsp;-\>write to text file c:\history.txt  
  
If I righ click on Reset Variable and ‘run selected Action and child’ all is working. But If I select my target and run it, The history keep growing as all the old history command is happended to the TFS\_HISTORY variable. I can see this in the variable watch tab.  
  
What can I do to have the correct behaviour ?  
  
Regards  
  
Jonathan

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [January 15, 2017, 11:38am UTC](https://www.finalbuilder.com/forums/t/get-tfs-history-problem/2515/2 "2017-01-15T11:38:46Z")

</div>

Hi Jonathan,   
  
 This sounds like there is something wrong with the resetting of the internal state of the TFS action or the variable. I will check this out today and get back to you with a fix.

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [January 16, 2017, 2:41am UTC](https://www.finalbuilder.com/forums/t/get-tfs-history-problem/2515/3 "2017-01-16T02:41:29Z")

</div>

Hi Jonathan,   
  
 The following build correctly resets the internals of the TFS History action. Previously when running inside the target it was not correctly resetting its internal state and storing the console output from the previous run.   
  
 [http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800\_2029.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_2029.exe)

---

<div class="post-metadata">

### Author: ![dumarjo](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@dumarjo](https://www.finalbuilder.com/forums/u/dumarjo)
#### Post date: [January 23, 2017, 11:04am UTC](https://www.finalbuilder.com/forums/t/get-tfs-history-problem/2515/4 "2017-01-23T11:04:26Z")

</div>

Hi,  
  
This have resolve the problem with the variable reset.&nbsp;  
  
I have another problem with the unicode of the output of the history action.&nbsp;  
  
I have attached 2 files. One is comming from the pipe on command line and the other is comming from the action history + action file write.&nbsp;  
  
You should find the diff bettween both are the french encoded char é converted to teta symbol.&nbsp;  
  
Is it possible to have the french char saved to the file with the file write action ?  
  
Regards  
  
Jonathan[\_\_40155\_\_0\_\_files.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/a/a955e55cbf92064eddf69feab88991b49b48c56c.zip) (601 B)

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [January 24, 2017, 5:46am UTC](https://www.finalbuilder.com/forums/t/get-tfs-history-problem/2515/5 "2017-01-24T05:46:27Z")

</div>

Hi Jonathan Dumaresq,   
  
 We have found that the default encoding being returned for the system is not being used by TFS history call. Hence we are converting the text incorrectly. We are looking at a way to resolve this and not break other command line calls which use other encodings. We should have something for you in the very near future.

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [January 25, 2017, 2:45am UTC](https://www.finalbuilder.com/forums/t/get-tfs-history-problem/2515/6 "2017-01-25T02:45:42Z")

</div>

Hi Jonathan,   
  
 We have updated FinalBuilder to set the correct code page when dealing with TFS History calls.   
  
 [http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800\_2066.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_2066.exe)   
  
 I have tested the french string that you were having issues with and all is working at our end. Please let me know if the changes also work for you.

---

<div class="post-metadata">

### Author: ![dumarjo](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@dumarjo](https://www.finalbuilder.com/forums/u/dumarjo)
#### Post date: [January 25, 2017, 2:51am UTC](https://www.finalbuilder.com/forums/t/get-tfs-history-problem/2515/7 "2017-01-25T02:51:25Z")

</div>

Hi,  
  
The history is now well written in the variables !. The remaining problem is that I could not save it correctly. When I save the variable with the write text file action, the result in the file is not correct. I got the Teta(T) symbol instead of é symbol. &nbsp;If I write the content from a run script action (in python in my case) the file is OK.  
  
Regards  
  
Jonathan&nbsp;

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [January 26, 2017, 11:01am UTC](https://www.finalbuilder.com/forums/t/get-tfs-history-problem/2515/8 "2017-01-26T11:01:32Z")

</div>

Hi Jonathan Dumaresq,   
  
In testing here you should be able to write the variable out to a text file using the “Write to Text File” action. This action allows you to set the encoding of the text file. I chose ANSI, and the text “Ajouté un délai de 250 ms par alarme” was written correctly.

---

<div class="post-metadata">

### Author: ![dumarjo](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@dumarjo](https://www.finalbuilder.com/forums/u/dumarjo)
#### Post date: [January 27, 2017, 5:17am UTC](https://www.finalbuilder.com/forums/t/get-tfs-history-problem/2515/9 "2017-01-27T05:17:12Z")

</div>

HI,  
  
Yes I confirm that this is working now. I probably forget to restart my test editor and the encoding was not correct in my editor.&nbsp;  
  
Now it’s looks ok  
  
thanx  
  
Jonathan

---

<div class="post-metadata">

### Author: ![mitchell.gage](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/958977/32.png) [@mitchell.gage](https://www.finalbuilder.com/forums/u/mitchell.gage)
#### Post date: [July 6, 2018, 5:25am UTC](https://www.finalbuilder.com/forums/t/get-tfs-history-problem/2515/10 "2018-07-06T05:25:20Z")

</div>

Hi,   
  
 I’m having this problem today in Finalbuilder 7 - is there a fix available for that version or do I need to move to FB8?   
  
 (Finalbuilder 7 version = 7.0.0.3486)   
  
 Thanks!

---

<div class="post-metadata">

### Author: ![mitchell.gage](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/958977/32.png) [@mitchell.gage](https://www.finalbuilder.com/forums/u/mitchell.gage)
#### Post date: [July 6, 2018, 5:26am UTC](https://www.finalbuilder.com/forums/t/get-tfs-history-problem/2515/11 "2018-07-06T05:26:03Z")

</div>

Sorry - when I say “this problem” I mean as per first post in this thread:   
  
 The history keep growing as all the old history command is happended to the TFS\_HISTORY variable. I can see this in the variable watch tab.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [July 6, 2018, 5:59am UTC](https://www.finalbuilder.com/forums/t/get-tfs-history-problem/2515/12 "2018-07-06T05:59:28Z")

</div>

Sorry but FinalBuilder 7 is no longer supported, it was superceeded by FinalBuilder 8 nearly 3 years ago and we no longer apply bug fixes to 7.
