# Vault get latest succeeds when it should not

**URL:** https://www.finalbuilder.com/forums/t/vault-get-latest-succeeds-when-it-should-not/2702
**Category:** Bugs
**Created:** [November 16, 2006, 2:34am UTC](https://www.finalbuilder.com/forums/t/vault-get-latest-succeeds-when-it-should-not/2702 "2006-11-16T02:34:29Z")
**Posts on this page:** 4
**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: [November 16, 2006, 2:34am UTC](https://www.finalbuilder.com/forums/t/vault-get-latest-succeeds-when-it-should-not/2702/1 "2006-11-16T02:34:29Z")

</div>

This is from the log generated when running FBCMD triggered by CCNet:[Vault Get Project from $/Applications/FarmManagement] Running Vault with command line : get -user “_ **" -password "** __" -host "_\*\*\*\*” -repository “\*\*\*\*” -destpath “c:\FinalBuilder\Vault\Applications\FarmManagement” -setfiletime “modification” -makereadonly -merge overwrite -performdeletions removeworkingcopy “$/Applications/FarmManagement/” An error occurred reading from the download stream (“Unable to read data from the transport connection.”), retrying… An error occurred reading from the download stream (“Unable to read data from the transport connection.”), retrying… An error occurred reading from the download stream (“Unable to read data from the transport connection.”), retrying… Too many errors were encountered downloading files. Some files may not have been updated. SuccessClearly - this task should have failed, but it was not flagged by FinalBuilder as failed…

---

<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: [November 17, 2006, 4:23am UTC](https://www.finalbuilder.com/forums/t/vault-get-latest-succeeds-when-it-should-not/2702/2 "2006-11-17T04:23:07Z")

</div>

Hi Espen,  
  
Unfortunately Vault doesn’t return proper error codes and so FinalBuilder captures the XML output and and searches for the vault/error node. It looks like from the output you’ve pasted here, that it’s not outputting xml. I’ve added a special case that searches for the text “An error occurred reading from the download stream” which will force the action to fail. As a workaround, you can process each line of output in the OnStatusMessage event for the action… if you find that kind of error then set a flag to fail the action from the AfterAction script event.  
  
hth.  
.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: [November 27, 2006, 3:55am UTC](https://www.finalbuilder.com/forums/t/vault-get-latest-succeeds-when-it-should-not/2702/3 "2006-11-27T03:55:24Z")

</div>

Did you have a release with this?

---

<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: [November 28, 2006, 12:13pm UTC](https://www.finalbuilder.com/forums/t/vault-get-latest-succeeds-when-it-should-not/2702/4 "2006-11-28T12:13:04Z")

</div>

Please contact me at support at finalbuilder dot com for the test build with this in, thanks.
