Check-in fails with error code 1602

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

Moderator: SourceGear

Post Reply
irishjts
Posts: 3
Joined: Thu Jan 14, 2016 6:33 am

Check-in fails with error code 1602

Post by irishjts » Thu Jan 14, 2016 6:38 am

We are using version 7.2.1. We have a c# console app that uses the Vault APIs to automatically check out and check in members to various repositories. We are receiving an error code 1602 on a check in. I cannot find documentation on this error code so is this coming from the Vault API's and if so, what does it mean? Thanks.

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

Re: Check-in fails with error code 1602

Post by Beth » Thu Jan 14, 2016 9:23 am

Do any other users have the same files checked out?

Take a look in the Vault Server Log for any errors occurring at the same time as the 1602 error. What do you see?

What errors do you see in the Event Viewer on the machine running the Vault API?

Can other users check out, edit, and check in the same files?
Beth Kieler
SourceGear Technical Support

irishjts
Posts: 3
Joined: Thu Jan 14, 2016 6:33 am

Re: Check-in fails with error code 1602

Post by irishjts » Fri Jan 15, 2016 6:09 am

Thanks Beth for getting back to me.

I believe I have found the issue by checking the server logs. The checkin is failing with - (e96bd424-c27d-4d48-897c-0ca90d2d1c9b) BeginTx returned: FailOutofDateObjVerID (e96bd424-c27d-4d48-897c-0ca90d2d1c9b) CheckIn: $/GAM364/DNN/MMIS/moroles.xml returned: FailOutofDateObjVerID.

Looking further in this forum shows that this error can be related to needing to do a merge. I took a closer look at the console application and some logic paths could result in doing things a bit out of turn which could cause the bad merge status.

Bottom line is the console app was updated to always - Set working folder, check out, save modified file, check in. Some logic paths were not always following that order.

So I guess the 1602 is referring to Merge issues?

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

Re: Check-in fails with error code 1602

Post by jclausius » Wed Jan 20, 2016 4:12 pm

Error 1602 is the "FailOutofDateObjVerID" error.

This means the file in the working folder is in a 'Needs Merge' state. The file must receive changes from the server before any kind of commit can continue. A GET with automatic-merge should resolve the problem, assuming there are no conflicts in the contents of the file retrieved with GET.
Jeff Clausius
SourceGear

Post Reply