"TF400030: The local data store is currently in use by another operation. Please wait and then try your operation again. If this error persists, restart the application.”

by Xavier Dilip Kumar 19. December 2013 08:36

Exception:

"TF400030: The local data store is currently in use by another operation. Please wait and then try your operation again. If this error persists, restart the application.”

Explanation:

The error occur when using local workspaces in Visual Studio 2012 or later

TFS 2012 and VS 2012 featured with new workspace concept called “local” workspaces.The workspace concept which was available from VS/TFS 2005 - 2010 is called as “server” workspaces 

When a local workspace is created, The required data structures will be moved from the TFS server onto the TFS Client. The data structures are local to local machine instead of being hosted on the TFS server. Moving the data structures to local machine gives VS 2012 the ability to perform a number of source control operations without TFS web service calls. The following operations continue to work when the local machine is disconnected from the TFS server.

  • Opening a source-controlled solution
  • Checking out a file for edit
  • adding a new file or folder for add
  • Delete on an existing file or folder
  • Rename on an existing file or folder
  • Monitor pending changes in the workspace
  • Undoing pending changes
  • Diffing your copy of a file with the version of the file your change is pended against
  • The local workspace will not carry read only bit during get source.
  • “Promoting” the candidate adds and/or deletes
  • The local workspace will be invisible to VS 2010 and earlier versions
  • No enforcement of PendChange permission or checkout locks
  • The local workspace can be converted to Server workspace and reverse the same

Local workspaces have scalability limitations due to their use of the local workspace scanner which checks for edited items.If the workspace has more than 50,000 items, There may be performance problems or "TF400030 errors as operations exceed 45 seconds in duration." may occur

Reconciled operation on the server or deadlock between two operations may also trigger the error.

In Local workspace architecture, only a single operation (thread) can use this local data at a time. If two pieces of system want to use the data store simultaneously – perhaps the Solution Explorer and the Source Control Explorer both want to refresh after an Undo operation was performed – then these two components have to take turns to use the local data store. One will wait for the other to finish, and who gets to go first is arbitrary.

The ‘loser’ of the race has to wait before proceeding, but will only wait for about 45 seconds. If he ends up waiting for that full amount of time, but still doesn’t get the chance to use the local data store (because some other component of the system is still using it), then this error will be raised.

Workaround:

  • keep the size of the local workspace from growing too large, files and folders less than 50,000 items
  • Avoid working with extremely large sets of pending changes (10,000+) for a long time without checking in. This helps to keep ‘reconcile’ costs low
  • Install Visual Studio 2012 Update 2 or later to get protected from the deadlock scenarios
  • Convert the local workspace to server workspace

Tags:

TFS | TFS 2012 | Visual Studio 2012

How to switch a workspace from source to target workspace mappings without affecting the folders and files in the target workspace.

by Xavier Dilip Kumar 19. December 2013 08:02

Explanation:

A regular get operation will deleted each item in the target workspace folder and re-downloaded the folders and files from the server to target workspace folder.

Solution:

Use remap switch with tf get command

"tf get /remap"

Note: /remap switch does increase the load on server to process your request

Tags:

TFS 2010 | Visual Studio 2010 | Visual Studio 2012 | Visual Studio 2013

Can I lock folders and files in a shelveset?

by Xavier Dilip Kumar 19. December 2013 07:43

Explanation

A lock cannot exist in a shelveset, When you try to lock an item and shelve it, your lock will be removed as part of the shelve operation.

Tags:

Visual Studio 2010 | Visual Studio 2012 | Visual Studio 2013

Multiple TFS users mapping their workspaces to same folder on shared drive

by Xavier Dilip Kumar 18. December 2013 10:02

Explanation:

Multiple users mapping their workspaces to same folder on shared drive lead to conflicts in performing checkin, Checkout and "get latest" operations.

Workaround:

You can try users mapping their workspaces to different folder on shared drive.

For example

user 1 -- <Shared Drive>\User 1 Workspaces\

user 2 -- <Shared Drive>\User 2 Workspaces\

user 3 -- <Shared Drive>\User 3 Workspaces\

user 4 -- <Shared Drive>\User 4 Workspaces\

Note: Mapping the workspace to a shared drive lead to bad performance.

Tags:

Visual Studio 2010 | Visual Studio 2012 | Visual Studio 2013

How to merge folders and files that are not directly branched from each other?

by Xavier Dilip Kumar 9. December 2013 12:00

Solution:

Solution is to perform a baseless merge using Tf.exe. Following are the steps

1. Perform a Baseless Merge Using Tf.exe

  • Open command prompt
  • cd "<Work space folder>"
  • execute tf merge /recursive /baseless "Parent Folders\Files" "Child Folders\Files"  

          Example:    tf merge /recursive /baseless "$\Project A\Development" "$\Project A\Release\V1.0"

2. Resolve Merge Conflicts

3. Check-In the Merged Changes

You should see the relationship established  between folders\files 

Tags:

TFS 2012 | TFS 2013 | Visual Studio 2010 | Visual Studio 2012

How to disable the work item moving to resolved state while associating to a checkin

by Xavier Dilip Kumar 21. August 2013 20:11

Work Around

Change the following key value to “False”.

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\TeamFoundation\SourceControl\Behavior\@ResolveAsDefaultCheckinAction

Tags: , ,

TFS | TFS 2010 | TFS 2012 | Visual Studio 2010 | Visual Studio 2012

Unable to create the Team Project Query

by Xavier Dilip Kumar 14. August 2013 18:17

Soultion

You need to set “Edit project-level information" permission to allow to create\edit any work item query

Tags: ,

TFS | TFS 2010 | TFS 2012 | Visual Studio 2012

a 64 bit debugging operation is taking longer than expected

by Xavier Dilip Kumar 5. July 2013 09:06

 

 

Solution:

I uninstalled a software named "Sendori".  The error got disappeared.

Discussion about Sendori

http://answers.microsoft.com/en-us/protect/forum/protect_other-protect_scanning

Tags:

Visual Studio 2012

First step to recover from VS – TFS performance issues

by Xavier Dilip Kumar 6. February 2013 07:07

Explanation:

Perform the following cache clean steps when you see VS – TFS performance issues

Solution:

TFS client cache clean up steps:

  • Close all Visual Studio IDE instances
  • Close browser or excel instances connected to TFS  
  • For Windows XP, delete all content under:

                C:\Documents and Settings\[USER]\Local Settings\Application Data\Microsoft\Team Foundation\

  • For Windows 7 or newer, delete all content under:

                C:\Users\[User]\AppData\Local\Microsoft\Team Foundation\

Tags:

TFS | Visual Studio 2010 | Visual Studio 2012 | Visual Studio 2013

About the author

My name is Xavier Dilip Kumar Jayaraj and I am a Software Configuration Management Engineer with a background in application development, Build & packaging using Install Shield.

Profile in LinkedIn

  

Quotes I Like

"Failure will never overtake me if my determination to succeed is strong enough."  - Dr. APJ. Abdul Kalam

"Always be yourself, express yourself, have faith in yourself, do not go out and look for a successful personality and duplicate it." - Bruce Lee

"Technology is just a tool. In terms of getting the kids working together and motivating them, the teacher is the most important." - Bill Gates

"Innovation distinguishes between a leader and a follower." - Steve Jobs

Disclaimer

The information provided here is based on my expreriences, troubleshooting and online/offline findings. It can be used as is on your own risk without any warranties and I impose no rights.

Month List