Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Team Foundation Server Periodic Identity Synchronization job fails with error Aborting sync due to too many errors (exceeded 100)


Symptoms

Team Foundation Server uses an Identity sync job to periodically synchronize Team Foundation users with Active Directory. The job does an incremental sync every hour and a full sync after every 24 hours by default. The identity sync job can fail with the following error if the number of errors encountered by it during synchronizing users with Active Directory reaches 100:

"Aborting sync due to too many errors (exceeded 100)"

This error is reported in the tbl_JobHistory table of the Team Foundation Server configuration database. We can use the following SQL query to query the configuration database to see if the issue is happening:

Select * from [Tfs_Configuration]..[tbl_JobHistory]
where Jobid='544DD581-F72A-45A9-8DE0-8CD3A5F29DFE'
Order By StartTime Desc

The error appears in the ResultMessage column.

↑ Back to the top


Cause

The issue happens if the number of errors encountered by the Identity sync job during synchronizing users with Active Directory reaches an internal threshold of 100.

↑ Back to the top


Resolution

We can resolve the issue by adjusting the error threshold to value higher than 100. This can be done by running the following SQL query against the Team Foundation Server configuration database.

INSERT tbl_RegistryItems VALUES (1, '#\Service\Integration\Settings\', 'IdentitySyncErrorLimit\', 1000)

↑ Back to the top


More Information

For more information about the Team Foundation Identity Synchronization job please visit http://blogs.msdn.com/b/vasu_sankaran/archive/2010/06/07/identity-synchronization-in-team-foundation-server-2010.aspx.

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2837424
Revision : 1
Created on : 1/7/2017
Published on : 4/25/2013
Exists online : False
Views : 416