Sam Bunting
Sam Bunting

Reputation: 965

Unable to perform branch, database update error thrown

I am trying to branch a directory in TFS using the Source Control explorer, however whenever I do, I always get this error:

TF400962: There was a database update error. Please try your operation again.

This occurs after confirming I would like to branch after it informs me that it will be committed as a single operation, pending changes will not be created and that it cannot be canceled when it is started.

enter image description here

I have been stuck on this for a while now and I can't seem to find any solution to this, here is a list of things I have tried.

I have ran out of ideas and it really is frustrating me. Any help would be appreciated. I'm using Visual Studio 2017 Enterprise now running on the latest updates.

Upvotes: 3

Views: 3836

Answers (3)

Wismann
Wismann

Reputation: 31

Check if you had a deleted branch in the path you are trying to branch to.

Steps to reproduce:

  1. Have code at $/path/to/main
  2. Branch from $/path/to/main to $/another/path/dev
  3. Delete $/another/path/dev
  4. Try to branch from $/path/to/main to $/another/path/dev/branch -> TF400962

Problem seems to be that $/another/path/dev/branch overlaps with deleted branch $/another/path/dev

Resolution:

  1. Show deleted elements in TFS Explorer
  2. Convert deleted branch $/another/path/dev/branch to regular folder
  3. Branch from $/path/to/main to $/another/path/dev/branch -> Success!

Upvotes: 3

crkuchlenz
crkuchlenz

Reputation: 33

Make sure your TFS DB is not out of disk space.

Upvotes: 0

Hamid Shahid
Hamid Shahid

Reputation: 4616

The error you are getting a generic error that could happen because of any TFS SQL Server related issue. Please check events logs on your TFS's SQL server machine. You might find more information there.

There is more information here

https://connect.microsoft.com/VisualStudio/feedback/details/1128642/tf400962-there-was-a-database-update-error-please-try-your-operation-again

Upvotes: 0

Related Questions