# TFS Latest Version Number Reporting Wrong Version Number

**URL:** https://www.finalbuilder.com/forums/t/tfs-latest-version-number-reporting-wrong-version-number/3416
**Category:** Bugs
**Created:** [January 5, 2012, 1:00am UTC](https://www.finalbuilder.com/forums/t/tfs-latest-version-number-reporting-wrong-version-number/3416 "2012-01-05T01:00:14Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![mhigginson](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/b9bd4f/32.png) [@mhigginson](https://www.finalbuilder.com/forums/u/mhigginson)
#### Post date: [January 5, 2012, 1:00am UTC](https://www.finalbuilder.com/forums/t/tfs-latest-version-number-reporting-wrong-version-number/3416/1 "2012-01-05T01:00:14Z")

</div>

We are switching from Subversion to TFS 2010 and I am experimenting with FB7 to see how to modify our existing build routines.

After changing a file and checking it in on another workstation I run a FB7 script which successfully performs a TFS&nbsp;Get to update the file in the workspace - I've checked the version numbers in Source Control Explorer and by actually opening the changed file.

However the script then does a TFS&nbsp;Latest Version Number which returns the previous version number, I have tried manually running "tf history \* /noprompt /recursive" in a DOS&nbsp;box and this is returning the correct updated info.

If I restart FB7 and re-run the script (with or without the TFS&nbsp;Get enabled) it then reports the correct version number.

&nbsp;

FB 7.0.0.1682 is installed on a Windows XP&nbsp;SP3 VM&nbsp;under HyperV on a Windows 2008 R2 Server with TFS&nbsp;2010 installed in another VM.&nbsp; I have installed Source Control Explorer locally on the XP&nbsp;VM (v10.0.30319.1 RTMRel).

Disclaimer: I'm a newbie to TFS&nbsp;and FB7 although I have been using previous versions of FB for several years.

&nbsp;

&nbsp;

---

<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: [January 6, 2012, 3:21am UTC](https://www.finalbuilder.com/forums/t/tfs-latest-version-number-reporting-wrong-version-number/3416/2 "2012-01-06T03:21:45Z")

</div>

Hi Mark   
  
 The Latest Version Number action just runs “tf history \* /noprompt /recursive” and then parses the output using regex.   
  
 Can you post the full output from running that command on your system? I’m wondering if it has changed at all in any updates.

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [January 6, 2012, 3:29am UTC](https://www.finalbuilder.com/forums/t/tfs-latest-version-number-reporting-wrong-version-number/3416/3 "2012-01-06T03:29:06Z")

</div>

Scratch that, the action was not correctly resetting it’s state between executions, we’ve checked in a fix and will let you know when the new build is available.   
  
 Regards,   
 Paul.

---

<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: [January 6, 2012, 3:55am UTC](https://www.finalbuilder.com/forums/t/tfs-latest-version-number-reporting-wrong-version-number/3416/4 "2012-01-06T03:55:16Z")

</div>

Actuall it looks like a bug, some state is not being reset properly. I’ll post a link to a new build shortly.

---

<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: [January 6, 2012, 5:48am UTC](https://www.finalbuilder.com/forums/t/tfs-latest-version-number-reporting-wrong-version-number/3416/5 "2012-01-06T05:48:19Z")

</div>

Hi Mark   
  
 This build includes the fix :   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700\_1728.exe](https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_1728.exe)

---

<div class="post-metadata">

### Author: ![mhigginson](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/b9bd4f/32.png) [@mhigginson](https://www.finalbuilder.com/forums/u/mhigginson)
#### Post date: [January 6, 2012, 10:24am UTC](https://www.finalbuilder.com/forums/t/tfs-latest-version-number-reporting-wrong-version-number/3416/6 "2012-01-06T10:24:36Z")

</div>

I can confirm that the problem is fixed, excellent job guys and quality service.

Thanks.
