Share via


View Synchronization Engine Error Messages

To help troubleshoot the integration of Visual Studio Team Foundation Server 2012 and Microsoft Project Server, you can display a list of recent synchronization errors. You can display the most recent errors that were logged for a team project collection by using the /GetSyncMessages option of the TFSAdmin ProjectServer command-line tool.

Note

For information about the synchronization process, see Overview of Team Foundation Server and Project Server Integration Features.

To run the TfsAdmin command-line tool, open a Command Prompt window where either Visual Studio or Team Explorer is installed and enter:

cd %programfiles%\Microsoft Visual Studio 11.0\Common7\IDE

On a 64-bit edition of Windows, replace %programfiles% with %programfiles(x86)%..

Required Permissions

To use this command, your Administer Project Server integration permission must be set to Allow for the team project collection. Also, the service account for Team Foundation Server must be granted the necessary permissions to interact with the instance of Project Web Access or Project Web App (PWA) that will participate in data synchronization. For more information, see Assign Permissions to Support Integration of Project Server and Team Foundation Server.

Note

Even if you log on with administrative permissions, you must open an elevated Command Prompt window to perform this function on a server that is running Windows Server 2008. To open an elevated Command Prompt window, choose Start, open the shortcut menu for the Command Prompt, and then choose Run as Administrator. For more information, see the following page on the Microsoft website: User Access Control.

Syntax

TfsAdmin ProjectServer /GetSyncMessages /collection:tpcUrl

Parameters

Parameter

Description

/collection: tpcUrl

Specifies the uniform resource locator (URL) of a team project collection. You specify the URI in the following format:

http://ServerName:Port/VirtualDirectoryName/CollectionName

If you do not specify a virtual directory, you specify the URI in the following format:

http://ServerName:Port/CollectionName

/? or help

Displays information about the command.

Back to top

Return Value

The /GetSyncMessages option displays a tab-delimited set of messages with their column headers. The following information appears for each message:

  • Date: Date when the message was logged.

  • Team Project Collection Name\Team Project Name: Names of the team project collection and the team project.

  • Project Name: Name of the enterprise project plan.

  • Message: Content of the message.

These messages are extracted from the synchronization job log. The /GetSyncMessages option truncates the messages that are much longer than average. When this truncation occurs, the following message appears:

There are additional errors that have been truncated from the log. These errors can be viewed in the event log for the application-tier server(s).

You can view the complete message by opening the event log for the corresponding application-tier server.

Back to top

Example

The following example retrieves the error messages that have been logged for DefaultCollection, which is defined on the MyTFSServer application-tier server.

TfsAdmin ProjectServer /GetSyncMessages /collection:http://MyTFSServer:8080/tfs/DefaultCollection

Tip

You can use standard command-line syntax to send the output to a file. For example, you can specify >c:\output.txt.

See Also

Concepts

Overview of Team Foundation Server and Project Server Integration Features

Manage Project Server Integration with TfsAdmin ProjectServer

Other Resources

Known Issues and Workarounds to Support Team Foundation Server and Project Server Integration