Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"No appropriate mapping exists" error while unshelving shelveset in TFS

I am using TFS 2012. In TFS there are more than 15 users. When I try to unshelve a shelveset files it shows error as shown below

enter image description here

Interesting is that this error does not comes for few users, and they are able to unshelve it. All the users have same permission. The error comes for one user and for another user it does not come in same PC(TFS server installed PC).So it's little strange error. Initially i was thinking like may be a problem with mappings,but for another user same kind of mapping allows to unshelve it. I also tried re creating the user and it does not solve the problem. So why does this error comes?

like image 686
IT researcher Avatar asked Apr 24 '14 09:04

IT researcher


3 Answers

Check the workspace you have selected in Team Explorer > Pending Changes. You must have a workspace selected that has a mapping which includes the server path of the file you are trying to unshelve.

(Note: make sure you are using the workspace mapping in Team Explorer, NOT the workspace shown in Source Control Explorer.)

Pending Changes

So if the file on shelveset is: $/TFS/Main/File1.cs, you need to have a workspace selected with a mapping that includes that file or one of its parent folders (e.g. $/TFS/Main)

I have multiple workspace for different branches and usually see this error when I try to unshelve into "Main" workspace when my "Feature Branch" workspace is selected.

like image 187
DaveShaw Avatar answered Oct 23 '22 12:10

DaveShaw


You need to select your Workspace in Team Explorer, not in Source Control Explorer.

To avoid this try to create you mapping with the same path across different workspaces.

Right way :

enter image description here

Wrong way :

enter image description here

like image 34
Roberto Borges Avatar answered Oct 23 '22 13:10

Roberto Borges


This error happens when your shelveset has file(s) or folder(s), which are not mapped in your local workspace. Please do a forced get latest for all paths contained in shelvesets. Unshelving will work after that.

like image 2
Hamid Shahid Avatar answered Oct 23 '22 12:10

Hamid Shahid