Checkin (Add) fails...

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

Moderator: SourceGear

Post Reply
Charlie23
Posts: 5
Joined: Tue Dec 13, 2011 3:34 pm

Checkin (Add) fails...

Post by Charlie23 » Tue Dec 13, 2011 3:47 pm

Message:
Item $/RaceNav/RaceNav/MainWindow.xaml caused the transaction to fail: An item with the same name or object id already exists in the selected folder.
Transaction failed

Background:
All from within visual studio (connected to vault)...
Mainwindow.xaml got too large. I renamed it to markswindow.xaml. I created a new mainwindow.xaml
Then I cut and paste the code from markswindow.xaml to other files and checked them in--no problem.
The vault client does not show a mainwindow.xaml currently in the project but if I try to check in the new mainwindow.xaml, I get the above message. The file was originally shown as a "renegade" but I unchecked checkout-required-before-checkin and it changed to "edited'. But I still get the above message.

What do I need to do to check in the file?

Thanks,
Charlie

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

Re: Checkin (Add) fails...

Post by Beth » Tue Dec 13, 2011 4:09 pm

Was the rename committed before the new one was created?

In your Vault GUI client, look in the pending changes. What remains there?
Beth Kieler
SourceGear Technical Support

Charlie23
Posts: 5
Joined: Tue Dec 13, 2011 3:34 pm

Re: Checkin (Add) fails...

Post by Charlie23 » Tue Dec 13, 2011 4:27 pm

Hi Beth, Thanks for your quick attention.
The rename was not committed prior to the creation of the new file.

Thanks,
Charlie

Here is a cut-paste of pending checkins...
[Of course, the "unmodified"s don't count and I am currently working on TextBoxDM
Note a pending delete of mainwindow.xaml and addfile's for mainwindow.xaml and mainwindow.xaml.cs]

Item Details Type Repository Path Date Comment
c:\users\charlie\documents\visual studio 2010\Projects\RaceNav\TestProject1\UnitTest1.cs Unmodified $/RaceNav/TestProject1/UnitTest1.cs 11/29/2011 8:01:03 PM
c:\users\charlie\documents\visual studio 2010\Projects\RaceNav\TestProject1\TestProject1.csproj Unmodified $/RaceNav/TestProject1/TestProject1.csproj 11/28/2011 2:53:21 PM
c:\users\charlie\documents\visual studio 2010\Projects\RaceNav\TestProject1\HelperTest.cs Unmodified $/RaceNav/TestProject1/HelperTest.cs 11/29/2011 5:36:50 PM
c:\users\charlie\documents\visual studio 2010\Projects\RaceNav\RaceNav\TextBoxDM.cs +638 bytes Modified $/RaceNav/RaceNav/TextBoxDM.cs 12/13/2011 4:19:45 PM
C:\Users\Charlie\documents\visual studio 2010\Projects\RaceNav\RaceNav\MainWindow.xaml.cs Add File $/RaceNav/RaceNav/MainWindow.xaml.cs 12/12/2011 12:58:12 PM
C:\Users\Charlie\Documents\Visual Studio 2010\Projects\RaceNav\RaceNav\MainWindow.xaml Add File $/RaceNav/RaceNav/MainWindow.xaml 12/13/2011 3:28:13 PM
$/RaceNav/RaceNav/MainWindow.xaml Delete File $/RaceNav/RaceNav/MainWindow.xaml 12/13/2011 3:27:37 PM

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

Re: Checkin (Add) fails...

Post by Beth » Tue Dec 13, 2011 4:35 pm

Try committing the rename first. Until the rename is committed to the server, the server will have the old name there.
Beth Kieler
SourceGear Technical Support

Charlie23
Posts: 5
Joined: Tue Dec 13, 2011 3:34 pm

Re: Checkin (Add) fails...

Post by Charlie23 » Tue Dec 13, 2011 4:43 pm

Sorry... I neglected to mention that after the file was renamed, all the code was cut out of it and it was deleted so it no longer exists.

Should create a dummy file of the same name and try to check it in?

Charlie

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

Re: Checkin (Add) fails...

Post by Beth » Tue Dec 13, 2011 4:46 pm

You might instead just delete the file of the same name from Vault using the GUI client. Commit that delete, then commit the add of the file by the same name.
Beth Kieler
SourceGear Technical Support

Charlie23
Posts: 5
Joined: Tue Dec 13, 2011 3:34 pm

Re: Checkin (Add) fails...

Post by Charlie23 » Tue Dec 13, 2011 4:58 pm

Neither MainWIndow.xaml nor MainWindow.xaml.cs show as part of the project in the vault client.

Charlie23
Posts: 5
Joined: Tue Dec 13, 2011 3:34 pm

Re: Checkin (Add) fails...

Post by Charlie23 » Tue Dec 13, 2011 5:34 pm

The vault client history won't cut-paste so I ahve uploaded a picture of it...

The file is never noted as being renamed from mainwindow to markswindow but markswindow is subsequently deleted.

Charlie
Attachments
history.jpg
History
history.jpg (147.26 KiB) Viewed 6798 times

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

Re: Checkin (Add) fails...

Post by Beth » Tue Dec 13, 2011 6:10 pm

I think taking a closer look might help here. Could you send an email to support at sourcegear.com (attn: Beth) with a link to this forum thread?
Beth Kieler
SourceGear Technical Support

Post Reply