Link to home
Start Free TrialLog in
Avatar of ivolach
ivolach

asked on

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
Avatar of jogos
jogos
Flag of Belgium image

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.
Avatar of Bob Learned
Since TFS keeps track of deleted items, you might have an item that was deleted that had the same name.
Avatar of srikanthreddyn143
srikanthreddyn143

Please make sure there is no file with the same name in the local folder.
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!
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!
ASKER CERTIFIED SOLUTION
Avatar of ivolach
ivolach

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ivolach

ASKER

I accepted my own comment as the solution because this is the only solution that worked for me.