Removing a Component from Participating in Data Synchronization
Updated: June 2011
You can remove components that you have configured to participate in data synchronization between Visual Studio Team Foundation Server 2010 and Microsoft Project Server 2007 with Service Pack 2 (SP2) or Project Server 2010. To permanently shut down synchronization, you must unmap each team project collection that is mapped and unregister each instance of Project Web Access or Project Web App (PWA) that is registered to Team Foundation Server.
In this topic
When you move servers or collections, you do not need to shut down synchronization, but you must perform some additional administrative tasks. For more information, see Changing the Configuration of Your Deployment.
When you delete a task from Project Server that has been synchronized with a work item in Team Foundation, you remove the association between the task and the work item. Work items remain in the database for Team Foundation. If you want to delete these work items, you must use the witadmin destroywi command. For more information, see Deleting Tasks and Removing Work Items That Are No Longer Participating in Synchronization.
To use these commands, your Administer Project Server integration permission must be set to Allow. Also, the service account for Team Foundation Server must be granted the necessary permissions to interact with the instance of PWA that will participate in data synchronization. To register or unregister an instance of PWA, you must also belong to the Administrators group for the instance. For more information, see Assigning Permissions to Support Integration of Project Server and Team Foundation Server.
Even if you log on with administrative permissions, you must open an elevated Command Prompt window to run the TfsAdmin command-line tool on a server that is running Windows Server 2008. To open an elevated Command Prompt window, click Start, right-click Command Prompt, and then click Run as Administrator. For more information, see the following page on the Microsoft website: User Access Control.
The following illustration shows the systematic sequence of steps that you take to shut down the synchronization engine and remove the integration of Team Foundation Server and Project Server. You can perform the sequence of steps as shown, or you can use the /force switch when you perform step 3 using the TfsAdmin ProjectServer /UnMapPWAFromCollection command option.
If you delete not only a mapped project collection but also all instances of PWA that were mapped to it, you will remove all mappings of work items that have been synchronized. However, the instance of PWA to Team Foundation Server will still be registered.
The /force switch automatically removes mapped or linked components. If you use this switch, you must run only one command for each collection and instance of PWA that you want to remove from participating in synchronization. To shut down the synchronization engine by using the /force switch, perform the following actions in the indicated sequence:
Remove mapping for each collection as Removing a Team Project Collection from Participating in Synchronization describes later in this topic.
Unregister each instance of PWA as Removing an Instance of PWA from Participating in Synchronization describes later in this topic.
The synchronization engine runs under a job service that the Team Foundation Background Job Agent manages. A synchronization engine is registered for each collection that is mapped to an instance of PWA. When you remove the integration of Project Server and Team Foundation Server, you shut down synchronization and cause the following actions to occur:
Remove the association between tasks in Project and work items in the team project.
Remove the association between enterprise project plans and team projects. This change includes the removal of the Project Server tab from the forms for all types of work items in the team project that are no longer mapped, if no other plan is mapped to the team project.
Remove the association between collections and an instance of PWA.
Remove the association between the instance of PWA and Team Foundation Server.
You remove a plan from participating in synchronization by unmapping it from the team project. Before you can unmap the plan, you must first delete all tasks that are linked to work items in the mapped team project. As an alternative, you can use the /force flag to remove these links.
To unmap an enterprise project plan from a team project
On a computer that has Team Explorer 2010 or Service Pack 1 for Visual Studio 2010 installed, open a Command Prompt window, and change to the directory that contains the TfsAdmin tool.
By default, the tool is in Drive:\%Program Files%\Microsoft Visual Studio 10.0\Common7\IDE.
Type the following command, and then press ENTER.
TfsAdmin ProjectServer /UnmapPlanFromTeamProject /collection:tpcUrl /enterpriseProject:EnterpriseProjectName /teamProject:TeamProjectName /force
Replace tpcUrl with the URL of the team project collection, EnterpriseProjectName with the name of the enterprise project plan, and TeamProjectName with the name of the team project.
Wait until you see the following messages:
Unmapping enterprise project EnterpriseProjectName from team project TeamProjectName.
Enterprise project EnterpriseProjectName was successfully unmapped from team project TeamProjectName.
You remove a collection from participating in synchronization by unmapping it from the instance of PWA. Before you can unmap the collection, you must first unmap all project plans that are mapped to team projects in the collection. As an alternative, you can use the /force flag to unmap all team projects.
To unmap a collection and all team projects from an instance of PWA
Open a Command Prompt window, type the following command, and then press ENTER.
TfsAdmin ProjectServer /UnMapPWAFromCollection /pwa:pwaUrl /collection:tpcUrl /force
Replace pwaUrl with the URL of the instance of PWA and tpcUrl with the URL of the collection.
Wait until you see the following messages:
Unmapping team project collection tpcUrl from PWA pwaUrl.
You have successfully unmapped team project collection tpcUrl from PWA pwaUrl.
As the final step in removing the integration, you must unregister each instance of PWA that was registered with Team Foundation Server. You should unregister all instances of PWA that no longer contain any enterprise projects that must synchronize their data with Team Foundation.
To unregister an instance of PWA
Open a Command Prompt window, type the following command, and then press ENTER:
TfsAdmin ProjectServer /UnregisterPWA /pwa:pwaUrl /tfs:tfsUrl
Replace pwaUrl with the URL of the instance of PWA and tfsUrl with the URL of the application-tier server.
Wait until the following messages appear:
Unregistering PWA pwaUrl.
You have successfully unregistered PWA pwaUrl.
Repeat step 2 for each instance of PWA that supports enterprise project plans that you want to remove from participating in synchronization with Team Foundation.
You can remove one or more types of work items from participating in data synchronization for a team project by using the TfsAdmin ProjectServer /UnmapWorkItemTypes command. If any work items of the type that you want to remove are being synchronized, you can specify the /force switch to remove the links that bind them to their corresponding tasks in Project.
For more information, see Specifying the Work Item Types That Can Be Synchronized.
You can remove one or more fields from participating in data synchronization for a team project collection. You remove a field from synchronization by removing its mappings. You must not remove fields that are required for synchronization. For more information, see Customizing the Field Mapping Between Project Server and Team Foundation Server and Managing Field Mappings for Integration of Team Foundation Server and Project Server.