Solved

Cannot add an item to a project, TFS problem.

Posted on 2012-04-02
9
3,966 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Framework versus framework 64 in IIS 8.5 5 81
Problem to Popup 2 52
.net VBA word safemode 1 24
Closing all open child forms. 4 24
MS Access 2003 or later To MySQL Migration Project Hello All, this is my second article in the category of MS-OFFICE Automation. In internet I am not able to find any comprehensive resource on the Migration of MS Access back-end to MySQL so I fin…
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)…
Viewers will learn the different options available in the Backstage view in Excel 2013.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

762 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