Checkin (Add) fails...
Moderator: SourceGear
Checkin (Add) fails...
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
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
Re: Checkin (Add) fails...
Was the rename committed before the new one was created?
In your Vault GUI client, look in the pending changes. What remains there?
In your Vault GUI client, look in the pending changes. What remains there?
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Checkin (Add) fails...
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
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
Re: Checkin (Add) fails...
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
SourceGear Technical Support
Re: Checkin (Add) fails...
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
Should create a dummy file of the same name and try to check it in?
Charlie
Re: Checkin (Add) fails...
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
SourceGear Technical Support
Re: Checkin (Add) fails...
Neither MainWIndow.xaml nor MainWindow.xaml.cs show as part of the project in the vault client.
Re: Checkin (Add) fails...
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
The file is never noted as being renamed from mainwindow to markswindow but markswindow is subsequently deleted.
Charlie
- Attachments
-
- History
- history.jpg (147.26 KiB) Viewed 6810 times
Re: Checkin (Add) fails...
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
SourceGear Technical Support