Error: Could not retrieve the file from the database.

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
bneagu
Posts: 4
Joined: Wed Nov 14, 2007 12:18 pm

Error: Could not retrieve the file from the database.

Post by bneagu » Wed Nov 14, 2007 12:22 pm

Hi,

- Vault client is version 4.0.4.15848
- Vault server is version 4.0.4.15848

I am getting the error below, when adding a file to the repository:

[11/14/2007 11:22:58 AM] An error occurred while trying to end a transaction.
[11/14/2007 11:22:58 AM] Transaction failed
[11/14/2007 11:22:58 AM] Item $/QIMS/C++/unicf.dll - Development/uniresGerman/unires.rc caused the transaction to fail: Could not retrieve the file from the database.
[11/14/2007 11:22:58 AM] Transaction failed

Any help will be appreciated.

Thank you.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Wed Nov 14, 2007 5:05 pm

You were adding that file fresh for the first time?
Are you adding it with the Vault GUI or inside of Visual Studio?
Can you check in your Vault server log for errors that occurred at the same time? (C:\Windows\temp\sgvault\sgvault.log)

bneagu
Posts: 4
Joined: Wed Nov 14, 2007 12:18 pm

Post by bneagu » Wed Nov 14, 2007 9:01 pm

Beth, thank you for your reply.

I added and removed that file (and others like it, which gave the same error) many times, using either the GUI or Visual Studio also. The error is when using the GUI.

I recently upgraded the Vault client, and had alot of weird errors since (file already exists, Java exceptions...). I was not able to even see the repository tree when starting the client.

I do not have access to the server log.

I saw a posting to rename one of the Cache files, CacheMember_ChangeSetItems, to CacheMember_ChangeSetItems.old.

I did that, and was able to add the files on a fresh branch.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Thu Nov 15, 2007 11:24 am

Is there a reason to keep adding and removing the same file?

bneagu
Posts: 4
Joined: Wed Nov 14, 2007 12:18 pm

Post by bneagu » Thu Nov 15, 2007 2:25 pm

The only reason is that I moved the VC++ 6.0 project from one folder to another, and I cannot get it synchronized with Vault anymore.

I am pointing to the right Working Floder in the Vault client, but VC++ 6.0 does not seem to notice anymore that the files are under source control.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Thu Nov 15, 2007 4:50 pm

If you performed the move on disk rather than through the IDE integration, then they probably have messed up bindings. One needs to be cautious when moving. I think you might be able to edit either the .sln or .proj files to point to the right location as well.

bneagu
Posts: 4
Joined: Wed Nov 14, 2007 12:18 pm

Post by bneagu » Fri Nov 16, 2007 1:34 pm

Hi,

I edited the following files:

- MSSCCPRJ.SCC:
SCC_Project_Name = <path in Vault repository>

- <project>.dsp:
# PROP Scc_ProjName ""<path in Vault repository>", IWAAAAAA"

- <project>.dsw
begin source code control
<path in Vault repository>
.
end source code control

I also rernamed <project>.ncb and <project>.opt, which were recreated.

The files look now to be under source control in VC++ 6.0 GUI.

Thank you for your help.

Post Reply