How to remove TFS check-out locks
-
mardi 31 juillet 2012 13:12
Hi ,
I have issue of retrieving data from my TFS server.
When I try to get data from TFS server below error was prompted.
The item $/McDRDM/trunk/RDM-Main/RDM/Source/InstallationPackages/RdmServer/BizTalkComponents/BizTalkR2 Hotfix is locked for check-out by domain\user in workspace pcname
I investigated and identified that this is due to one of past member of my project who not in the organization at the moment locked the file, and I tried to remove lock using below command.
tf undo /workspace:OtherUserWorkspace;OtherUser $/TeamProject/MyFile.cs /s:http://YourTFSServer:8080
But it prompted below error message.
System.Web.Services.Protocols.SoapException: TF14061: The workspace pcname;domain\user does not exist. at Microsoft.TeamFoundation.VersionControl.Server.Repository.QueryWorkspace(S tring workspaceName, String ownerName)
This is due to that past member is currently not available on my domain. Please kindly oblige to rectify this issue.
Note : I have Admin rights and access to server.
Thanks and Regards, Lalindu
Toutes les réponses
-
mardi 31 juillet 2012 14:06
Hi ,
I have issue of retrieving data from my TFS server.
When I try to get data from TFS server below error was prompted.
The item $/McDRDM/trunk/RDM-Main/RDM/Source/InstallationPackages/RdmServer/BizTalkComponents/BizTalkR2 Hotfix is locked for check-out by domain\user in workspace pcname
I investigated and identified that this is due to one of past member of my project who not in the organization at the moment locked the file, and I tried to remove lock using below command.
tf undo /workspace:OtherUserWorkspace;OtherUser $/TeamProject/MyFile.cs /s:http://YourTFSServer:8080
But it prompted below error message.
System.Web.Services.Protocols.SoapException: TF14061: The workspace pcname;domain\user does not exist. at Microsoft.TeamFoundation.VersionControl.Server.Repository.QueryWorkspace(S tring workspaceName, String ownerName)
This is due to that past member is currently not available on my domain. Please kindly oblige to rectify this issue.
Note : I have Admin rights and access to server.
Thanks and Regards, Lalindu
HI,
Further we tried. tf lock /lock:none command (as described in this link ) to unlock this but failed. Helping us with your expertise knowledge will be highly appreciated.
Thanks and Regards, Lalindu
- Modifié Lalindu Peiris mardi 31 juillet 2012 14:07
-
mardi 31 juillet 2012 20:44
Lalindu,
This can be done by downloading and installing the TF Sidekicks tools.
Using the "Status Sidekick" located under the "Tools" menu in Visual Studio, I'd search for the User in the "User Name" field in the top-left pane. Then I'd locate the source control path using the treeview in bottom-left pane. The changes and locks should show up in the right pane. You can then click the "Undo Lock" button. This should undo the lock if you have the right permissions. The other "Undo" button will undo the users pending changes.
EDIT: I should have made it clear that this can be done against other user's workspaces as well, not just your own.- Modifié Jarrett Coggin mardi 31 juillet 2012 20:45
-
mercredi 1 août 2012 02:56Modérateur
Hi Lalindu,
Thank you for your post.
What;s the error message when you run tf lock /lock:none command?
Try to do following steps.
1. Find out the local path of the locked file.
2. Click Start, click Run, enter %comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" x86, click OK. The command prompt window open.
3. Locate to the locked file local path, like cd C:\Users\xxx\Desktop\workspace_vs10\TFS10\Agile5\ProjectA\ProjectA.
4. Run tf lock /lock:none locked file name.regards,
Lily Wu [MSFT]
MSDN Community Support | Feedback to us
-
jeudi 2 août 2012 05:45
Hi Jarrett,
Thank you very much for your constructive advice. we will try this method.
Thanks and Regards, Lalindu
-
jeudi 2 août 2012 06:06
Hi Lily,
Once we tried /lock:none command, We got error saying that user not available in our domain. (That user was our past employee and once he left organization we remove him from the domain without knowing that he locked our TFS data).
However now we managed to get copy of that branch with all data in it (as Administrator user) and able use it without any locks. Old branch still exist with locks (no worries, cause now we can use our new copy of data branch).
In my opinion it will be better if Microsoft can provide us UI with administrator rights for TFS server to rectify this kind of issues.
Thank you very much for your guidance and directions. I will contact you if further issues exists.
Thanks and Regards, Lalindu
- Marqué comme réponse Lalindu Peiris jeudi 2 août 2012 06:06
- Non marqué comme réponse Lalindu Peiris jeudi 2 août 2012 06:06
- Marqué comme réponse Lily_WuMicrosoft Contingent Staff, Moderator jeudi 2 août 2012 07:26

