# Team Foundation History Doesn't work in FB 7

**URL:** https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256
**Category:** Bugs
**Created:** [August 5, 2010, 1:41am UTC](https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256 "2010-08-05T01:41:28Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 5, 2010, 1:41am UTC](https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256/1 "2010-08-05T01:41:28Z")

</div>

&nbsp;I'm trying to use the Team Foundation History Action in Final Builder 7 to determine several things, such as changeset number, last person to check in and when they checked in. &nbsp;I'm putting the following parameters in for the action

Item Spec: \*

Version Spec: T

User:

Recursive is checked

Detailed Format is selected

Number of entries to view: 1

Save history to variable: History

From the log file, I can see that FinalBuilder is emitting the appropriate command line parameters, but it is always saying that the action Failed! &nbsp;The command line is below:

history /version:T /stopafter:1 /recursive /format:detailed /noprompt

When I type this in at the Command Prompt, I get the results I expect.

Thanks,

Nick

---

<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: [August 5, 2010, 4:09am UTC](https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256/2 "2010-08-05T04:09:56Z")

</div>

Hi Nick   
  
 Can you check what the dos %ERRORLEVEL% is after running the command from the command prompt? The History action is set to only interpret 0 as a success return code.   
  
 If it’s returning non zero then perhaps we need to change the action… although according to this page :   
  
 [http://msdn.microsoft.com/en-us/library/ms194959(v=VS.80).aspx](http://msdn.microsoft.com/en-us/library/ms194959%28v=VS.80%29.aspx)   
  
 zero is the only definitive success code.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 5, 2010, 11:15am UTC](https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256/3 "2010-08-05T11:15:56Z")

</div>

Hello Vincent,   
  
 I ran the command line history command and checked %ERRORLEVEL% and it was 0. Just in case it helps or makes a difference, FinalBuilder is running on a Windows 2008 R2 Server 64-Bit.   
  
 Thanks,   
  
 Nick

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 9, 2010, 1:36am UTC](https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256/4 "2010-08-09T01:36:55Z")

</div>

Any updates on this one?

---

<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: [August 10, 2010, 12:30pm UTC](https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256/5 "2010-08-10T12:30:33Z")

</div>

Hi Nick,   
  
 I just had a look at the action and it should be succeeding so long as the return code is 0, do you have any custom script or output monitors on the action? If you could send in your project to support[at][finalbuilder.com](http://finalbuilder.com) we might be able to figure out what’s going on.   
  
 Regards,   
 Paul.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 10, 2010, 12:57pm UTC](https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256/6 "2010-08-10T12:57:26Z")

</div>

Paul,   
  
 I have no custom script at all. I don’t actually have it in my project because it isn’t working. All of the parameters that I’ve passed in are in the original post to this thread.   
  
 Thanks,   
 Nick

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 19, 2010, 12:08pm UTC](https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256/7 "2010-08-19T12:08:43Z")

</div>

Any updates on this one?

---

<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: [August 19, 2010, 11:38am UTC](https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256/8 "2010-08-19T11:38:00Z")

</div>

Which version of TFS are you using?

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 20, 2010, 12:28pm UTC](https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256/9 "2010-08-20T12:28:38Z")

</div>

2010

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 21, 2010, 11:52am UTC](https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256/10 "2010-08-21T11:52:05Z")

</div>

Has anyone been able to get this working with TFS 2010?

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [September 27, 2010, 4:36am UTC](https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256/11 "2010-09-27T04:36:31Z")

</div>

I'm including a sample project where the TFS&nbsp;History command isn't working.&nbsp; Any chance someone could look at this and tell me what is wrong?

[TFS\_History\_Test.fbp7](https://www.finalbuilder.com/forums/uploads/default/original/2X/4/494044599e37b45a595aee1a63cf3dd42eb0a9e7.fbp7) (19.275 KB)

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [September 27, 2010, 5:09am UTC](https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256/12 "2010-09-27T05:09:19Z")

</div>

Ok, I think I’ve finally figured this one out. I need to specify the path in the Item Spec.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [September 28, 2010, 3:05am UTC](https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256/13 "2010-09-28T03:05:46Z")

</div>

Hi Nick,   
 Thanks for sharing your work around. Is this behaviour (needing to specify the Item Spec) different from FinalBuilder 6? From what I can see we haven’t changed the History action for FB7, but I may have missed something.   
  
 Cheers,   
  
 Ben

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [September 28, 2010, 3:52am UTC](https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256/14 "2010-09-28T03:52:43Z")

</div>

Looking into this a little more, the History action isn’t using the default TFS working directory (as set in the FinalBuilder options). I’ve just fixed this and will upload a test build this afternoon.   
  
 Now, if no path is set in the Item Spec AND there is a default working directory, the default working directory is used.   
  
 Ben

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [September 28, 2010, 4:19am UTC](https://www.finalbuilder.com/forums/t/team-foundation-history-doesnt-work-in-fb-7/3256/15 "2010-09-28T04:19:15Z")

</div>

The build with this fix is available from [https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700\_727.exe](https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_727.exe)   
  
 Ben
