Solved

Cannot add an item to a project, TFS problem.

Posted on 2012-04-02
9
4,026 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
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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 15

Expert Comment

by:navneethegde
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:navneethegde
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
This collection of functions covers all the normal rounding methods of just about any numeric value.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now