TFS checkin problem after a couple of directories renames & file moves

Viewed 10948

I get following error from TFS now when I try to checkin my entire solution.

TF203057: Cannot check in the rename change for folder $/XXX because there are files or folders in this folder with pending rename or delete changes. You must check in the rename and delete changes together. No files checked in.

Of course I am checking in everything together. I cannot checkin even a single unrelated file now cause it still fires this I am unable to find a page with such TF error. What can be done to get TFS to checkin ?

I tried to checkout whole project, but it didnt help. Now its whole on checkout by me ..

10 Answers

I have encountered this issue after moving source code to different directory in TFS. I was not able to check-in the pending files in the newly moved directory. The below approach worked for me:

  1. Exclude all the files that has pending changes.

  2. Checked in only renamed folder from the Source Control.

  3. Take Latest.

  4. Include all pending changes.

  5. Checked in pending changes.

This worked perfectly for me.

This is weird so I want to give a short answer for passers by and a long answer for those who are interested.

Short Answer: Try changing the View Options in Pending Changes to 'Show All' and see if your rename change appears.

Long Answer: This issue has been bugging me recently and I found that the issue was with the view options in the team explorer (pending changes) panel. If I selected 'Show Solution Changes' then the rename (or folder move in my case but same error) did not show in the included changes section (while the changes to the child files did, hence the error). If I changed the view opens to 'Show All' then I could see the rename change and was able to check in. So for me, this was caused by a bug in the TFS VS integration. This was confirmed as a bug by an MSFT 12 years ago (if you can believe it) here on msdn.

I hope this helps.

Related