# Sourcesafe - Get files on an existing Label

**URL:** https://www.finalbuilder.com/forums/t/sourcesafe-get-files-on-an-existing-label/2631
**Category:** Bugs
**Created:** [May 9, 2006, 11:31am UTC](https://www.finalbuilder.com/forums/t/sourcesafe-get-files-on-an-existing-label/2631 "2006-05-09T11:31:47Z")
**Posts on this page:** 5
**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: [May 9, 2006, 11:31am UTC](https://www.finalbuilder.com/forums/t/sourcesafe-get-files-on-an-existing-label/2631/1 "2006-05-09T11:31:47Z")

</div>

I cannot seem to get reliable results when attempting to get files from VSS against a previously created label.  
  
E.g.  
I have 2 projects A & B.   
  
Both projects have been previously labelled with Finalbuilder.  
  
I use exactly the same settings in both calls but A will download the correct version. B will give a ‘Version not found’ error.  
  
Anyone got any ideas?

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [May 22, 2006, 8:10am UTC](https://www.finalbuilder.com/forums/t/sourcesafe-get-files-on-an-existing-label/2631/2 "2006-05-22T08:10:08Z")

</div>

Hi Clive,  
  
What are some examples of the labels you are using? I seem to remember that there was some issue with labels that have numbers in them or something?  
  
.t8

---

<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: [May 22, 2006, 10:27am UTC](https://www.finalbuilder.com/forums/t/sourcesafe-get-files-on-an-existing-label/2631/3 "2006-05-22T10:27:23Z")

</div>

I Tate,  
Thanks for getting back to me.  
  
I use FB to label all of the projects in the same format.   
  
The label used is: %BuildNum%-LMR-9810  
  
Where  
  
%BuildNum% is a variable set by reading previous setings from a text file and incrementing the Build Number by one. The format is 8.9.1.53  
  
LMR is the product name.  
  
9810 is the CPU number of the build machine.  
  
The whole label for this build would be 8.9.1.53-LMR-9810  
’Expand Expression’ is checked  
’Modifier’ = Trim  
’Apply to existing value’ is not checked  
’Force Type’ = Default  
  
Our process is:  
1. Read the existing build number and increment by one  
2. Label all required projects in VSS  
3. Do a ‘GET’ on the label that was just created  
4. Build the software  
  
I have done a check after the labelling process to see if all of the projects and components have got the correct label and it does seem so.  
  
Any help you can give would be appreciated.  
  
Regards,  
  
Clive

---

<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: [May 22, 2006, 10:55am UTC](https://www.finalbuilder.com/forums/t/sourcesafe-get-files-on-an-existing-label/2631/4 "2006-05-22T10:55:27Z")

</div>

Hi Tate,  
  
Thanks for the reply.  
  
The build number is a consistent format across all projects. It is set with FB and its format is:  
  
%BuildNum%-LMR-9810  
  
Where  
  
%BuildNum% - This is a variable containing our software version number. The last one used is read from a text file and the final number (build number) is incremented by one.  
  
LMR is the product name  
  
9810 is the CPU number of the build machine  
  
A typical label would be 8.9.1.53-LMR-9810  
  
’Expand Expression’ is checked  
’Modifier’ is set to TRIM  
’Apply to existing value’ is not checked  
’Force Type’ is set to DEFAULT  
  
In brief, our build proces with FB is:  
  
1. Get the last version number from saved text file and increment by one  
2. Create BuildNum and LABEL variables based on that number  
3. Label all of the required projects in VSS   
4. Do a ‘GET’ from VSS on the label just created  
5. Build the software  
  
I did do a check to see if all of the sub projects and components get labelled correctly and it seemed to be OK.  
  
  
  
  
  
Any help you can give would be appreciated  
  
Regards,  
  
Clive

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [May 26, 2006, 4:06am UTC](https://www.finalbuilder.com/forums/t/sourcesafe-get-files-on-an-existing-label/2631/5 "2006-05-26T04:06:44Z")

</div>

Hi Clive,  
  
I really have no idea why it’s not working for you sometimes. My only suggestion is that if you can get a reproducible case (with a sample vss database) and send it to us, we can step through the code to see if we can figure out what’s going wrong.  
  
cheers,  
.t8
