Can't check in files, bizarre error message!

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

Moderator: SourceGear

Post Reply
robertdipaolo
Posts: 2
Joined: Tue Nov 17, 2009 12:38 pm

Can't check in files, bizarre error message!

Post by robertdipaolo » Tue Nov 17, 2009 1:58 pm

I have a problem where after creating a new project both the Vault Client and Visual studios integration won't allow me to check in two of the files and the error message isn't much help;
Non-negative number required.
Parameter name: totalWidth
This is the first time it's happened! Anyone got any ideas?

I'm running vault client/server v4.1.4.18402

Rob.

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

Re: Can't check in files, bizarre error message!

Post by lbauer » Tue Nov 17, 2009 3:46 pm

We've had one other report of this. The user made some changes to the file contents and was able to checkin the file. Are you using keyword expansion in the files?
Linda Bauer
SourceGear
Technical Support Manager

robertdipaolo
Posts: 2
Joined: Tue Nov 17, 2009 12:38 pm

Re: Can't check in files, bizarre error message!

Post by robertdipaolo » Tue Nov 17, 2009 4:25 pm

Yes we have headers and footers on our files that get updated with version information on checkin. The headers and footers on the files in question were cut & pasted from another file and then hand edited! I tried removing them and recreating the header/footer using a macro and they both checked in fine. So looks like the problem was with the keyword expansion.

Thanks.

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

Re: Can't check in files, bizarre error message!

Post by lbauer » Tue Nov 17, 2009 4:50 pm

Thanks for the update. The other case we had was also a user with keyword expansion, too. Here's how she fixed the problem:
I was able to add the file by changing the line of "*$Log:: $" to
"*$Log:: $", adding one more space before the second $.
Glad your solution worked, too.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply