Vault excepting in GETLABELDIFFS after upgrade to SQL SP4

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

Moderator: SourceGear

Post Reply
timw@newsgator.com
Posts: 6
Joined: Mon Apr 03, 2006 10:53 am

Vault excepting in GETLABELDIFFS after upgrade to SQL SP4

Post by timw@newsgator.com » Mon Apr 10, 2006 2:02 pm

I have a batch file called since.bat that simply gets the change delta from a given lebel. This has been working great. This morning it is not. You can see the command [and the exception in GetLabelTimeStamps I receive now] below. The only thing that has happened is the IT guy applied SP4 to our SQL instance. Any help is very much appreciated!

Thanks,

Tim
C:\Program Files\SourceGear\Vault Client>VAULT GETLABELDIFFS -host ngbuild1 -user timw -password something -repository ngonline $/ngonline_v1 PROD_31MAR06
<vault>
<error>
Invalid label: PROD_31MAR06
</error>
<exception>
System.ArgumentException: Invalid label: PROD_31MAR06
at VaultCmdLineClient.VaultCmdLineClient.GetLabelTimeStamps(String item, String label1, String label2, DateTime& timestamp1, DateTime& timestamp2)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandGetLabelDiffs(String strReposPath, String strLabel1, String strLabel2)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
</exception>
<result success="no" />
</vault>

timw@newsgator.com
Posts: 6
Joined: Mon Apr 03, 2006 10:53 am

REVault excepting in GETLABELDIFFS after upgrade to SQL SP4

Post by timw@newsgator.com » Mon Apr 10, 2006 2:05 pm

This Vault client is version 3.1.2.3511
[4/10/2006 1:50:04 PM] Version Check: Your Vault server is version 3.1.6.3658

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon Apr 10, 2006 2:48 pm

We've had other reports of this error. In one case a user discovered the -rowlimit argument is ignored in the history item query in the GetLabelTimeStamps function... instead it is hard-coded to 10K. So if your labels don't fall in the first 10K items, the label(s) won't be found. He replaced this with a 0, and got the diffs.

http://support.sourcegear.com/viewtopic.php?p=23178

Does this work for you?
Linda Bauer
SourceGear
Technical Support Manager

timw@newsgator.com
Posts: 6
Joined: Mon Apr 03, 2006 10:53 am

Post by timw@newsgator.com » Mon Apr 10, 2006 4:59 pm

This is not an argument to the getlabeldiffs command is it? Thanks, Tim

timw@newsgator.com
Posts: 6
Joined: Mon Apr 03, 2006 10:53 am

Post by timw@newsgator.com » Mon Apr 10, 2006 6:00 pm

The following command does work for this so exists as a good workaround. Though I'm curious why it broke suddenly.

VAULT HISTORY -host ngbuild1 -user timw -password something -repository ngonline $/ngonline_v1 -beginlabel %1

Thanks,

Tim

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon Apr 10, 2006 9:03 pm

I'm curious why it broke suddenly
Maybe it hit a default row limit?

Getlabeldiffs does have a rowlimit option:
This is a list of possible options:
-rowlimit limitnumber
Limits the number of rows returned for a history query to
limitnumber
Try setting rowlimit to 0 and see if the labeldiff works then.
Linda Bauer
SourceGear
Technical Support Manager

timw@newsgator.com
Posts: 6
Joined: Mon Apr 03, 2006 10:53 am

Post by timw@newsgator.com » Tue Apr 11, 2006 1:33 pm

Like this?

VAULT GETLABELDIFFS -host ngbuild1 -user timw -password something -rowlimit 1000 -repository ngonline $/ngonline_v1 %1

Command still fails.

Thanks,

Tim

timw@newsgator.com
Posts: 6
Joined: Mon Apr 03, 2006 10:53 am

Post by timw@newsgator.com » Tue Apr 11, 2006 3:40 pm

Hi Linda,

I tried this with a rowlimit of 0 (I actually read it this time! 8) ) and it still fails. Not sure how Rowlimit is hit but this is in a snapshot branch with only a half dozen labels since the branch and, literall, no changes between when it was working and when it wasn't, except for SP4. My concern was that something to do with dates creeped in.

Not a big deal since the history/beginlabel think is working now but it's a little worrisome because the output looks like something is getting stomped. Look at DateTime&amp in the log, like some kind of url encoding on the request to GetLabelTimeStamps?

Thanks,

Tim
System.ArgumentException: Invalid label: PROD_05APR06a
at VaultCmdLineClient.VaultCmdLineClient.GetLabelTimeStamps(String item, String label1, String label2, DateTime& timestamp1, DateTime& timestamp2)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandGetLabelDiffs(String strReposPath, String strLabel1, String strLabel2)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)

Post Reply