DavidADugan

I had a branch of my main solution called UAT5, unfortunately it was a very old branch, and we want to use it again, so instead of taking the time to merge it I figured it would be easier to just delete the branch, and then create a new branch off of the main code with the same name.

Which isn't working for me, when I try and branch I get the error: "TF14082: Cannot lock {File} for merging. This item is checked out to another workspace." on several hundred files. But none ofthem appear to be actually used by a different workspace though.

I've done the deleting and rebranching thing before and had it work fine, so I'm not sure what the deal is here, any suggestions

Thanks,
Dugan


Re: Team Foundation Server - Version Control Error TF14082: This item is checked out to another workspace.

Riham - MSFT

what is the output of tf status /user:* <itemspec>

for any file returning this error





Re: Team Foundation Server - Version Control Error TF14082: This item is checked out to another workspace.

Richard Berg MSFT

It sounds like someone has a file checked out, and has not run Get since the delete. You can find out for sure by running tf status {file};{oldversion} /user:*where {file} is the server path from the error message and {oldversion} is a version prior to the delete. The version is necessary because otherwise it will look for the newer item with the same name.




Re: Team Foundation Server - Version Control Error TF14082: This item is checked out to another workspace.

Chandru R - MSFT

Can you run the following statements on your TFSVersionControl database to help diagnose the issue:

select * from tbl_Lock where FullPath = 'path to file replacing / with \'

From the output of the statement above:

select *

from tbl_PendingChange

where PendingChangeId = <Pending Change from above>






Re: Team Foundation Server - Version Control Error TF14082: This item is checked out to another workspace.

DavidADugan

I tried the method suggested by Richard and Riham but it just said "There are no pending changes", and when I ran the query against the tbl_Lock table I didn't get any results, but I did get a number of results from the tbl_PendingChange query, including the workspaces of those who have locks on that directory, thanks.




Re: Team Foundation Server - Version Control Error TF14082: This item is checked out to another workspace.

Dragan Jankovic

Hi,

You can download very usefull tool from http://www.attrice.info/cm/tfs/index.htm. Within Status Sidekick application pane, you can view tree of pending changes filtered by specific user name (user may be selected from list of valid users), TFS project name and change creation date range and undo one or more pending changes on files/folders.

Regards