TF203015 The Item $/path/file has an incompatible pending change. While trying to unshelve

jcolebrand picture jcolebrand · May 10, 2010 · Viewed 59.3k times · Source

I'm using Visual Studio 2010 Pro against Team Server 2010 and I had my project opened (apparently) as a solution from the repo, but I should've opened it as "web site". I found this out during compile, so I went to shelve my new changes and deleted the project from my local disk, then opened the project again from source (this time as web site) and now I can't unshelve my files.

Is there any way to work around this? Did I blow something up? Do I need to do maintenance at the server?

I found this question on SO #2332685 but I don't know what cache files he's talking about (I'm on XP :\ ) EDIT: Found this link after posting the question, sorry for the delay in researching, still didn't fix my problem

Of course I can't find an error code for TF203015 anywhere, so no resolution either (hence my inclusion of the number in the title, yeah?)

EDIT: I should probably mention that these files were never checked in in the first place. Does that matter? Can you shelve an unchecked item? Is that what I did wrong?

EDIT: WHAP - FOUND IT!!! Use "Undo" on the items that don't exist because they show up in pending changes as checkins.

Answer

jcolebrand picture jcolebrand · May 11, 2010

I had deleted the files in trying to reload the workspace, even though I had shelved the changes. Then VS2010 thought those files were still pending to save. I didn't need that, so I had to figure out to "undo" the changes in Pending Changes.

Then I could unshelve.

It thought I had two ops (unshelve, commit-for-add) going simultaneously, and I thought I had only one op (unshelve).