Cannot add an item to a project, TFS problem.

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
ivolachAsked:
Who is Participating?
 
ivolachAuthor Commented:
Hello,

Thank you all for your suggestions. Unfortunately nothing's helped. I ended up with restore the whole TFS form backup.
0
 
jogosCommented:
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
 
Bob LearnedCommented:
Since TFS keeps track of deleted items, you might have an item that was deleted that had the same name.
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
srikanthreddyn143Commented:
Please make sure there is no file with the same name in the local folder.
0
 
NavneetSoftware EngineerCommented:
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
 
NavneetSoftware EngineerCommented:
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
 
ivolachAuthor Commented:
I accepted my own comment as the solution because this is the only solution that worked for me.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.