# TFS 2010 build gives Error: Cannot find the current label

**URL:** https://www.finalbuilder.com/forums/t/tfs-2010-build-gives-error-cannot-find-the-current-label/3343
**Category:** Bugs
**Created:** [February 25, 2011, 2:37am UTC](https://www.finalbuilder.com/forums/t/tfs-2010-build-gives-error-cannot-find-the-current-label/3343 "2011-02-25T02:37:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lsondergaard](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/dfb087/32.png) [@lsondergaard](https://www.finalbuilder.com/forums/u/lsondergaard)
#### Post date: [February 25, 2011, 2:37am UTC](https://www.finalbuilder.com/forums/t/tfs-2010-build-gives-error-cannot-find-the-current-label/3343/1 "2011-02-25T02:37:02Z")

</div>

Hi,

Under certain circumstances I get the error "Error: Cannot find the current label" when running FB via TFS 2010.

To reproduce:

1. Create a NEW build definition in TFS. Make sure to set "Label Sources=False" and "Associate Changesets and Work items=False".

2. Run a build from the definition&nbsp; ---\> No error

3. Change the build definition so the two options above are True

4. Run a build from the definition&nbsp; ---\> No error

5. Change the build definition so the two options above are False again

6. Run a build from the definition&nbsp;---\> Error: Cannot find the current label

&nbsp;

In other words once you have used "Label Sources" on a definition you cannot "go back". I am not sure the "Associate Changesets..." option is actually relevant...

&nbsp;

br Lars

---

<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: [February 28, 2011, 1:26am UTC](https://www.finalbuilder.com/forums/t/tfs-2010-build-gives-error-cannot-find-the-current-label/3343/2 "2011-02-28T01:26:13Z")

</div>

Hi Lars,   
 I can reproduce this here, but as yet I have no idea what’s causing it. I’ll look into it and let you know.   
  
 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: [February 28, 2011, 3:28am UTC](https://www.finalbuilder.com/forums/t/tfs-2010-build-gives-error-cannot-find-the-current-label/3343/3 "2011-02-28T03:28:57Z")

</div>

Hi Lars,   
 I’ve uploaded a build with the fix: [https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700\_1050.exe](https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_1050.exe)   
  
 Can you please test it and let me know how you go?   
  
 Please note, the XAML files will need to be updated as described here: [https://www.finalbuilder.com/articles.aspx?ID=43](https://www.finalbuilder.com/articles.aspx?ID=43)   
  
 Cheers,   
  
 Ben

---

<div class="post-metadata">

### Author: ![lsondergaard](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/dfb087/32.png) [@lsondergaard](https://www.finalbuilder.com/forums/u/lsondergaard)
#### Post date: [February 28, 2011, 2:02am UTC](https://www.finalbuilder.com/forums/t/tfs-2010-build-gives-error-cannot-find-the-current-label/3343/4 "2011-02-28T02:02:22Z")

</div>

Hi Ben,

Downloaded, installed and tested. Works like a charm.

As usual outstanding support :-)

---

<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: [March 1, 2011, 4:26am UTC](https://www.finalbuilder.com/forums/t/tfs-2010-build-gives-error-cannot-find-the-current-label/3343/5 "2011-03-01T04:26:56Z")

</div>

Glad it’s working - thanks for getting back to me.   
  
 Ben
