VSS import does not import labels

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

Moderator: SourceGear

Post Reply
mvreimann
Posts: 6
Joined: Mon May 05, 2008 5:24 am

VSS import does not import labels

Post by mvreimann » Mon May 05, 2008 7:08 am

We are planning to migrate from VSS to Vault. I am just doing some tests on an evaluation version of Vault.
On testing an import of our approx. 1.5 GByte VSS database we got some exceptions "VaultServiceBase.VaultTreeException: _htFolderEntries did not contain an entry for [NAME]" (see attached file for exception messages in import tool window and the sgvault.log file) and most labels are not imported. Except for the labels the import seems to be successful.

I considered all "Tips for a successful VSS Import" except 1: The import tool, SQL server and Vault is running on the same machine.

System information:

Client Information
Vault Client Version: 4.1.1.18060
.Net Framework Version: 2.0.50727.1433
Operating System: Microsoft(R) Windows(R) Server 2003, Standard Edition
Service Pack: 2.0
OS Version: 5.2.3790
Total Physical Memory: 2 GB
Time Zone: (GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna

Server Information
Vault Server Version: 4.1.1.18060
.Net Framework Version: 2.0.50727.1433
Operating System: Microsoft(R) Windows(R) Server 2003, Standard Edition
Service Pack: 2.0
OS Version: 5.2.3790
Timezone: (GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
SQL Version: Microsoft SQL Server 2005 - 9.00.1399.06 (Intel X86)
Oct 14 2005 00:33:37
Copyright (c) 1988-2005 Microsoft Corporation
Express Edition on Windows NT 5.2 (Build 3790: Service Pack 2)

License Information
3 serial number(s):
1 of 3: 10 full users, expiring 15.05.2008
Invalid serial: ...
Invalid serial: ...
Attachments
sgvault.ZIP
(7.5 KiB) Downloaded 144 times
Exceptions.ZIP
(2.34 KiB) Downloaded 149 times

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

Post by Beth » Mon May 05, 2008 8:40 am

Can you also show your Import log file? It should be located in the same directory where your import tool is.

mvreimann
Posts: 6
Joined: Mon May 05, 2008 5:24 am

The Import Log file

Post by mvreimann » Mon May 05, 2008 9:57 am

...
Attachments
ImportLog.ZIP
(814.42 KiB) Downloaded 147 times

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

Post by Beth » Tue May 06, 2008 9:43 am

Can you send me an email at support at sourcegear.com (attn: Beth) with a link to this thread? I'd like to send you our debug import tool to try.

mvreimann
Posts: 6
Joined: Mon May 05, 2008 5:24 am

Empty folders are created !? (Importing labels continues)

Post by mvreimann » Fri May 09, 2008 1:30 am

Hi Beth,
thanks for the import tool debug version, my import tests are contining.
I made (see also http://support.sourcegear.com/viewtopic.php?t=6949) an export and import of our VSS database to get rid of errors, which are not reported by the "analyse" tool. During the import many error messages were displayed "File or project not found." Possibly theses error were responsible for the label import bug.
Then I started to import the project in smaller chunks without importing the labels. I change the folder structure and get empty folders (see attached screenshots). Is it safe to delete these folders?
Attachments
FilesAreInNewFolderStructure.gif
The are the files in the new folder structure
FilesAreInNewFolderStructure.gif (18.57 KiB) Viewed 5386 times
OriginalFolderStructureFromVSS.gif
VSS' original folder structure is imported without files.
OriginalFolderStructureFromVSS.gif (16.21 KiB) Viewed 5386 times

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

Post by Beth » Fri May 09, 2008 10:22 am

You can easily delete anything, because you can always undelete it. It's only if you go to obliterate that you need to ask yourself a few questions first.

Were each of those instances a separate import or are they a share or branch of the one or the other?

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

Post by Beth » Fri May 09, 2008 10:26 am

Also, on the log file you posted it shows an error of "_htFolderEntries did not contain an entry for sql." When you run Analyze, are any errors shown at all?

mvreimann
Posts: 6
Joined: Mon May 05, 2008 5:24 am

Post by mvreimann » Fri May 09, 2008 3:33 pm

1. The imported projects are neither branches nor shares. I just changed the Vault target folder structure but the VSS folder structure was created in Vault additionally. But it's no problem - I will delete it after the import.

2. On running analyse I did not get errors at all, but I ran analyse with the options "-F -V3" and not with the options "-C -D -F -V4" you proposed in your mail. I will run it with these options later. Currently an import of the backuped/restored VSS DB is running for some hours and I want to wait for the results.

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

Post by Beth » Mon May 12, 2008 1:18 pm

New results yet?

mvreimann
Posts: 6
Joined: Mon May 05, 2008 5:24 am

Archive / restore did not solve the problem

Post by mvreimann » Tue May 13, 2008 1:57 am

After archive / restore, importing in smaller chunks and importing data first and labels later the same exception occured as in the beginning (see att.).
Analyse with options "-C -D -F -V4" on the archived / restored source safe DB is currently running.
Attachments
importlog.zip
(646.5 KiB) Downloaded 140 times

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

Post by Beth » Tue May 13, 2008 10:21 am

Based on the log though, it looks like the error only occurred on the label portion, correct?

mvreimann
Posts: 6
Joined: Mon May 05, 2008 5:24 am

Post by mvreimann » Tue May 13, 2008 2:34 pm

> Based on the log though, it looks like the error only occurred on the label portion, correct?
Yes, thats correct. Importing the files without labels was successful and reported no errors.

I ran analyse with options "-C -D -F -V4" on the archived / restored source safe DB, which reported no errors.

I am at my wit's end. What to do now? Perhaps I can archive a smalll portion of our VSS DB which can reproduce the error and send it to you, so you can anaylse it more closely and perhaps fix it in a future Vault version.

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

Post by Beth » Wed May 14, 2008 10:56 am

Is every label needed?

In the KB article, Options for a VSS import, it suggests only importing the most important labels. If you label every build, are there builds that you aren't going to be going back to any more? If so, those might be the labels to not worry about.

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

Post by Beth » Wed May 14, 2008 1:55 pm

We need to pull this off line. We would like to take a little closer look. I will send a follow up email to the one you sent previously.

Post Reply