• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4662
  • Last Modified:

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
0
ivolach
Asked:
ivolach
1 Solution
 
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
 
srikanthreddyn143Commented:
Please make sure there is no file with the same name in the local folder.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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:
Hello,

Thank you all for your suggestions. Unfortunately nothing's helped. I ended up with restore the whole TFS form backup.
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.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now