# FinalBuilder Check-in File To SourceGear Vault problem

**URL:** https://www.finalbuilder.com/forums/t/finalbuilder-check-in-file-to-sourcegear-vault-problem/1205
**Category:** Discussion
**Created:** [May 16, 2009, 12:06pm UTC](https://www.finalbuilder.com/forums/t/finalbuilder-check-in-file-to-sourcegear-vault-problem/1205 "2009-05-16T12:06:59Z")
**Posts on this page:** 10
**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 16, 2009, 12:06pm UTC](https://www.finalbuilder.com/forums/t/finalbuilder-check-in-file-to-sourcegear-vault-problem/1205/1 "2009-05-16T12:06:59Z")

</div>

Hi,

I'm trying to use FinalBuilder to checkin a file to SourceGear Vault SCM.

The FinalBuilder gets the "latest version" of the software great from Vault. &nbsp;Then the next step of the FinalBuilder is to check-back-in one of the resulting dlls.&nbsp; I get no error (says successful from FinalBuilder), but the file does not appear to be checked-in to Vault.

To run a test, I added a file called junk.log to Vault, put it in a directory, and had the FinalBuilder project (disabled all other steps) "Check-in" the file to Vault.&nbsp; Again in this case, FinalBuilder gave me no error, but junk.log did not appear to be checked in to Vault.

Attached is a screenshot showing the steps of this test.

Thoughts on what might the problem?

Thanks!

&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: [May 16, 2009, 2:22am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-check-in-file-to-sourcegear-vault-problem/1205/2 "2009-05-16T02:22:16Z")

</div>

Hi Andy   
  
 We need more information (and your screenshot didn’t get uploaded). Which version of FinalBuilder and Vault are you using. What appears in the log in FinalBuilder? If you copy the command line from the log and run it on a command window what happens?

---

<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 16, 2009, 1:24am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-check-in-file-to-sourcegear-vault-problem/1205/3 "2009-05-16T01:24:54Z")

</div>

Hi Vincent,

Thanks for the response.

Using FinalBuilder Professional 6.2.0.1265, SourceGear Vault&nbsp;4.1.4.18402.

&nbsp;

---

<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 16, 2009, 1:42am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-check-in-file-to-sourcegear-vault-problem/1205/4 "2009-05-16T01:42:37Z")

</div>

Regarding the log, I see the "Build Log" that has the following item:   
  
Running Vault with command line :   
commit -user "XXXXX" -password "\*\*\*\*\*\*" -host "XXX.XX.XXX.XX" -repository "SourceCode" "$/Production/Gear/Distribution/Debug/Grb.Gear.dll" "$/Production/Gear/Distribution/Debug/Grb.Gear.pdb" "$/Production/Gear/Distribution/Debug/junk.log"   
  
I'm not sure I'm understanding, because this doesn't appear to be a command that could be run from a command window. Is there another log from which I can fetch a command-line executable entry?   
&nbsp;

---

<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 16, 2009, 1:43am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-check-in-file-to-sourcegear-vault-problem/1205/5 "2009-05-16T01:43:33Z")

</div>

On the attachement, I can't seem to get it to display in the forum. It appears that the file is successfully posted (here's a copy/paste from the forum posting page):   
  
Current AttachmentsMy Files(1)   
Upload   
File Name File Size Create Thumbnail Insert Image Display Link? Delete   
FinalBuilder\_VaultFileCheckIn\_FileCheckinSayin.jpg 65.84 KB   
  
Thoughts on what I might be doing wrong? Are maybe attachments reviewed by the forum admin?

---

<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: [May 18, 2009, 5:29am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-check-in-file-to-sourcegear-vault-problem/1205/6 "2009-05-18T05:29:30Z")

</div>

Hi Andy,   
  
It looks like the forum software that we're using doesn't treat images the same as other file attachments, could you re-attach the image as a .zip archive? I've tried to reproduce the problem you're having with Vault but it's working as expected, the output that I've received is:   
  
  
_Vault Check In [$/a8i]   
Status: Completed   
Date: 18/05/2009   
Time: 13:24:21:938   
End: 13:24:38:089   
Duration: 00:00:16:151_   
  
_Action Messages:   
Running Vault with command line : commit -user "paul" -password "\*\*\*\*\*\*" -host "vaultdemo.sourcegear.com" -repository "Repository A" -comment "Hello World!" "$/a8i/New Text Document.txt" "$/a8i/Copy of New Text Document.txt" "$/a8i/Copy (2) of New Text Document.txt"   
Preparing data to begin transaction   
Beginning transaction   
Check in $/a8i/New Text Document.txt   
Check in $/a8i/Copy of New Text Document.txt   
Check in $/a8i/Copy (2) of New Text Document.txt   
Ending the transaction   
Transaction completed successfully   
Success_   
  
Could you re-post the entire output you receive from the Vault action so we can see what is being returned by the Vault command line?   
  
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: [May 18, 2009, 3:34am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-check-in-file-to-sourcegear-vault-problem/1205/7 "2009-05-18T03:34:57Z")

</div>

Hi Paul,   
  
Thanks for the note.   
  
I've zipped the screenshot and attached.   
  
I've also tried to find how to see the "entire output" that you refered to, but have not been able to figure out out to do that. Could you explain how I can see the "entire output"? (attached is a screenshot of the log output that I can see).   
  
Cheers,   
  
Andy

[FinalBuilder\_VaultFileCheckIn\_FileCheckinSayin.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/5/5763efb72707fa3273f6034be8476667a605db35.zip) (182.722 KB)[LogScreenShot.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/b/b162a8b2a8472ffb8299a367a17176eb4e13a6c1.zip) (106.423 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: [May 18, 2009, 5:31am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-check-in-file-to-sourcegear-vault-problem/1205/8 "2009-05-18T05:31:59Z")

</div>

I've resolved the issue. The problem was that I was not setting the "working directory" (using a different FinalBuilder command) before doing the check in. So (I presume), the files were getting fetched from the default working directory, and the check-in was checking in the same (old) version of the file...so appeared that no files were checking in.

Thanks!

---

<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 18, 2009, 5:33am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-check-in-file-to-sourcegear-vault-problem/1205/9 "2009-05-18T05:33:07Z")

</div>

btw, still would be really helpful to know how to see the log you displayed:

Thanks!

&nbsp;

e.g.

_Vault Check In [$/a8i]   
Status: Completed   
Date: 18/05/2009   
Time: 13:24:21:938   
End: 13:24:38:089   
Duration: 00:00:16:151_   
  
_Action Messages:   
Running Vault with command line : commit -user "paul" -password "\*\*\*\*\*\*" -host "vaultdemo.sourcegear.com" -repository "Repository A" -comment "Hello World!" "$/a8i/New Text Document.txt" "$/a8i/Copy of New Text Document.txt" "$/a8i/Copy (2) of New Text Document.txt"   
Preparing data to begin transaction   
Beginning transaction   
Check in $/a8i/New Text Document.txt   
Check in $/a8i/Copy of New Text Document.txt   
Check in $/a8i/Copy (2) of New Text Document.txt   
Ending the transaction   
Transaction completed successfully   
Success_

---

<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: [May 19, 2009, 4:15am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-check-in-file-to-sourcegear-vault-problem/1205/10 "2009-05-19T04:15:47Z")

</div>

Hi Andy,   
  
 The output I pasted was just from the build log (select action -\> right click -\> copy), the reason why the output differs between what I pasted and what you see is that Vault does not output any information when you are checking in files that are not currently checked out (well that’s one case in which is doesn’t output anything, I’m sure there are other reasons).   
  
 Regards,   
 Paul.
