Solved

Cannot add an item to a project, TFS problem.

Posted on 2012-04-02
9
4,277 Views
Last Modified: 2013-11-26
Hello,

I use TFS. I try to add an item and I get an error message:

Cannot add the item. There already exists an item with the same name under source control that prevents this add operation from continuing. Please rename the item and try adding it again.

I've got this error after a number of rollbacks of some changesets (not all of them between a current and an initial changesets).

I am the only user of this TFS and only at one location. So it is not a problem that somebody didn't check in his/her changes.

Thank you
0
Comment
Question by:ivolach
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 25

Expert Comment

by:jogos
ID: 37800455
Run a compare to have all differences in your whole tree. That could show the  problem.

Possibility is that you have played with other locations so you are looking at the wrong place.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 37800571
Since TFS keeps track of deleted items, you might have an item that was deleted that had the same name.
0
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 37800599
Please make sure there is no file with the same name in the local folder.
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 15

Expert Comment

by:Navneet
ID: 37800638
Hi!

Have you deleted the File you are trying to add?
however try to Undo Pending changes and then try to add the item again.


Thanks!
0
 
LVL 15

Expert Comment

by:Navneet
ID: 37800654
Hi!

Also if the Item you are trying to add is showing RED CROSS mark against it. then undo changes that will undo the Delete of that item and try replacing the item.

Thanks!
0
 

Accepted Solution

by:
ivolach earned 0 total points
ID: 38074478
Hello,

Thank you all for your suggestions. Unfortunately nothing's helped. I ended up with restore the whole TFS form backup.
0
 

Author Closing Comment

by:ivolach
ID: 38092508
I accepted my own comment as the solution because this is the only solution that worked for me.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This very simple solution applies to a narrow cross-section of the "needs to close" variety. In this case, the full message in Event Viewer was in applog, Event ID 1000: Faulting application iexplore.exe, version 8.0.6001.18702, faulting module …
Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question