Errors adding files in Command Line

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

Moderator: SourceGear

Post Reply
bertholdra
Posts: 4
Joined: Fri Mar 07, 2008 11:32 am

Errors adding files in Command Line

Post by bertholdra » Fri Mar 07, 2008 11:40 am

I have been getting errors while trying to add files using the command line interface.
At first I tried AddFolder and it successfully recreated the structure of the project that I wanted but it gave an error 400 on creating each file.
I then tried AddFile using *.* as the file name but it could not find the files.
I then tried AddFile for a specific file and it also gave an error.
The information is given below. Basically, I want to make a copy of an existing project (Share with Branching also gave the 400 error).
Suggestions of help would be appreciated. If it is a version problem, i will be able to update the client version but can not update the server version.

Attempt to add a single file
------------------------------------


C:\Program Files\SourceOffSite>soscmd -server 1.1.1.1:8080 -alias "vss" -name username -password "" -verbose -recursive -time modification -project "billing\Billing.Net.V0\BillingLibrary\code\Functions_CallCharging" -file "c:\devel\billingv0\BillingLibrary\code\Functions_CallCharging\f_callfraud.vb" -command AddFile
SourceOffSite Command Line Client: 128 bit Encryption version 4.0.2
Connected to server 1.1.1.1 at port 8080.

Matched alias 'vss' to database 'C:\vss\srcsafe.ini'

Received Challenge from server
Successfully logged in.
Sending AddFile Command to server.
Error adding file: c:\devel\billingv0\BillingLibrary\code\Functions_CallCharging\f_callfraud.vb Server response = 400 OperationFailed
Closed connection to server 1.1.1.1 at port 8080.
Dick Berthold

bertholdra
Posts: 4
Joined: Fri Mar 07, 2008 11:32 am

Post by bertholdra » Fri Mar 07, 2008 2:29 pm

I thought it might be the version, so upgraded to version 4.1.2 but it made no difference.
Dick Berthold

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Wed Mar 19, 2008 10:36 am

Is there anything reported in the SourceOffSite server log?
Jeff Clausius
SourceGear

bertholdra
Posts: 4
Joined: Fri Mar 07, 2008 11:32 am

Post by bertholdra » Wed Mar 19, 2008 12:17 pm

Thanks for the suggestion...
There are numerous messages there...probably one for each file.
They all say:
3/7/2008 11:55:21 AM - Exception in CalendarFromDateString(): Index was outside the bounds of the array.
3/7/2008 11:55:21 AM - 131: Exception: Specified argument was out of the range of valid values.
Parameter name: Not a valid Win32 FileTime.
Dick Berthold

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Wed Mar 19, 2008 1:02 pm

Something is amiss here.

AddFolder will add entire folder to the VSS database. You'll need to set "-workdir" "X:\some\dir\path" and "-recursive" if you want everything within that path.

In regards to files, AddFile will add items one file at a time, and does not support wildcards nor "-recursive" nor "-time".


Also, I noticed your post info for "-project" is not a valid VSS path. It should look something like :

-project $/projects/projname/src/projdir

HTH
Jeff Clausius
SourceGear

bertholdra
Posts: 4
Joined: Fri Mar 07, 2008 11:32 am

Post by bertholdra » Tue Mar 25, 2008 6:36 am

Thought you might like to know what the problem was...
My command file had -time modification in it as I had been using the same command file to try various things in SourceOffsite. Once I removed that I was able to add the files successfully.
Dick Berthold

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Tue Mar 25, 2008 7:33 am

Thanks for the post. I'm glad you were able to sort things out.
Jeff Clausius
SourceGear

Post Reply