Replication error 8451 The replication operation encountered a database error

Applies To: Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

This article covers symptoms, root causes, and how to resolve Active Directory replication error 8451: The replication operation encountered a database error. Symptoms Causes Resolution More information
Symptoms You might encounter one of more of the following symptoms: On-screen errors, logged events, or diagnostic output identify the existence of a database error, with possible formats as shown in the following table.
Hex Decimal Symbolic Error String
0x2103 8451 ERROR_DS_DRA_DB_ERROR The replication operation encountered a database error.
0xfffffc06 -1018 JET_errReadVerifyFailure Checksum error on a database page
0xfffffbe9 -1047 JET_errInvalidBufferSize Data buffer does not match column size
0xfffffbc -1075 JET_errOutOfLongValueID Long-value ID counter has reached maximum value. (perform offline defrag to reclaim free/unused LongValueIDs)
0xfffffb4a -1206 JET_errDatabaseCorrupted Non-database file or corrupted db
0xfffffa7a -1414 JET_errSecondaryIndexCorrupted Secondary index is corrupt. The database must be defragmented
0xfffffa0a -1526 JET_errLVCorrupted Corruption encountered in long-value tree
0xfffff9bf -1601 JET_errRecordNotFound The key was not found
0xfffff9b -1603 JET_errNoCurrentRecord Currency not on a record
DCPROMO fails with error 8451 Error in DCRPOMO UI "The operation failed because: Active Directory Domain Services could not replicate the directory partition <DN path of failing partition> from the remote Active Directory Domain Controller <helper DC>.<dns domain name>.<top level domain>. "The replication operation encountered a database error." Error text from DCPROMO.LOG: <date> <time> [INFO] NtdsInstall for contoso.com returned 8451 <date> <time> [INFO] DsRolepInstallDs returned 8451 <date> <time> [ERROR] Failed to install to Directory Service (8451) <date> <time> [INFO] Starting service NETLOGON REPADMIN commands that commonly cite the 8606 status include but are not limited to:
REPADMIN /KCC REPADMIN /REHOST REPADMIN /REPLICATE REPADMIN /REPLSUM REPADMIN /SHOWREPL REPADMIN /SHOWREPS REPADMIN /SHOWUTDVEC REPADMIN /SYNCALL
Sample output from "REPADMIN /SHOWREPS" depicting inbound replication from CONTOSO-DC2 to CONTOSO-DC1 failing with the "replication access was denied" error is shown below: Default-First-Site-NameCONTOSO-DC1 DSA Options: IS_GC Site Options: (none) DSA object GUID: b6dc8589-7e00-4a5d-b688-045aef63ec01 DSA invocationID: b6dc8589-7e00-4a5d-b688-045aef63ec01 ==== INBOUND NEIGHBORS ====================================== DC=contoso,DC=com Default-First-Site-NameCONTOSO-DC2 via RPC DSA object GUID: 74fbe06c-932c-46b5-831b-af9e31f496b2 Last attempt @ <date> <time> failed, result 8451 (0x2103): The replication operation encountered a database error. consecutive failure(s). Last success @ <date> <time>.
NTDS KCC, NTDS General or Microsoft-Windows-ActiveDirectory_DomainService events with the 8451 status are logged in the directory service event log. Active Directory events that commonly cite the 8451 status include but are not limited to:
Event Source Event String
1039 with extended error 8451 Microsoft-Windows-ActiveDirectory_DomainService Internal event: Active Directory Domain Services could not process the following object.
1084 with extended error 84511655 Microsoft-Windows-ActiveDirectory_DomainService Internal event: Active Directory could not update the following object with changes received from the following source domain controller. This is because an error occurred during the application of the changes to Active Directory on the domain controller.
1308 with extended error 8451 Microsoft-Windows- ActiveDirectory_DomainService The Knowledge Consistency Checker (KCC) has detected that successive attempt to replicate with the following directory service failed.
1699 with extended error 8451 Microsoft-Windows- ActiveDirectory_DomainService The local domain controller failed to retrieve the changes requested for the following directory partition. As a result, it was unable to send the change requests to the domain controller at the following network address.
2108 with extended error 8451 with secondary error value -1075 NTDS Replication This event contains REPAIR PROCEDURES for the 1084 event which has previously been logged. This message indicates a specific issue with the consistency of the Active Directory database on this replication destination. A database error occurred while applying replicated changes to the following object. The database had unexpected contents, preventing the change from being made. Object: CN=justintu@contoso.com,OU=marketing,OU=5thWard,OU=Houston,DC=Contoso,DC=com Object GUID: 2843919c-345c-4f57-bc1a-4ed5acbcf9e2 Source domain controller: 173ee10f-4c28-4acd-a2d7-61af8d4d3010._msdcs.Contoso.com User Action If none of these actions succeed and the replication error continues, you should demote this domain controller and promote it again. Additional Data Primary Error value: 8451 The replication operation encountered a database error. Secondary Error value: -1075
2108 with extended error 8451 with secondary error value -1526 NTDS Replication This event contains REPAIR PROCEDURES for the 1084 event which has previously been logged. This message indicates a specific issue with the consistency of the Active Directory database on this replication destination. A database error occurred while applying replicated changes to the following object. The database had unexpected contents, preventing the change from being made. Object: CN=justintu@contoso.com,OU=marketing,OU=5thWard,OU=Houston,DC=Contoso,DC=com Object GUID: 2843919c-345c-4f57-bc1a-4ed5acbcf9e2 Source domain controller: 173ee10f-4c28-4acd-a2d7-61af8d4d3010._msdcs.Contoso.com User Action If none of these actions succeed and the replication error continues, you should demote this domain controller and promote it again. Additional Data Primary Error value: 8451 The replication operation encountered a database error. Secondary Error value: -1526
2108 with extended error 8451 with secondary error value -1414 NTDS Replication This event contains REPAIR PROCEDURES for the 1084 event which has previously been logged. This message indicates a specific issue with the consistency of the Active Directory database on this replication destination. A database error occurred while applying replicated changes to the following object. The database had unexpected contents, preventing the change from being made. Object: CN=justintu@contoso.com,OU=marketing,OU=5thWard,OU=Houston,DC=Contoso,DC=com Object GUID: 2843919c-345c-4f57-bc1a-4ed5acbcf9e2 Source domain controller: 173ee10f-4c28-4acd-a2d7-61af8d4d3010._msdcs.Contoso.com User Action If none of these actions succeed and the replication error continues, you should demote this domain controller and promote it again. Additional Data Primary Error value: 8451 The replication operation encountered a database error. Secondary Error value: -1414
1039 with extended error 8451 NTDS General Internal event: Active Directory could not process the following object.
1925 with extended error 8451 NTDS KCC The attempt to establish a replication link for the following writable directory partition failed.
1084 with extended error 8451 NTDS Replication Internal event: Active Directory could not update the following object with changes received from the following source domain controller. This is because an error occurred during the application of the changes to Active Directory on the domain controller
1699 with extended error 8451 NTDS Replication The local domain controller failed to retrieve the changes requested for the following directory partition. As a result, it was unable to send the change requests to the domain controller at the following network address.
The following table lists Event Sources and Event ID that frequently accompany other events that contain the 8451 error. Increasing NTDS diagnostic logging levels on the domain controller produces additional events.
Event Source Event String
1481 with error -1601 Internal Processing Internal error: The operation on the object failed. Additional Data: Error value: 2 000020EF: NameErr: DSID-032500E8, problem 2001 (NO_OBJECT), data -1601, best match of: "
1173 with error -1075 Internal Processing Internal event: Active Directory has encountered the following exception and associated parameters. Exception: e0010004 Parameter: 0 Additional Data Error value: -1075 Internal ID: 205086d
1173 with error -1526 Internal Processing Internal event: Active Directory has encountered the following exception and associated parameters. Exception: e0010004 Parameter: 0 Additional Data Error value: -1526 Internal ID: 205036b
1173 with error -1603 Internal Processing Internal event: Active Directory has encountered the following exception and associated parameters. Exception: e0010004 Parameter: 0 Additional Data Error value: -1603 Internal ID: 2050344
474 with error -1018 NTDS ISAM The database page read from the file 'E:NTDSDatantds.dit' at offset 3846455296 (0x00000000e5444000) for 8192 (0x00002000) bytes failed verification due to a page checksum mismatch. The expected checksum was 323677604 (0x134aeda4) and the actual checksum was 2081515684 (0x7c1168a4). The read operation will fail with error -1018 (0xfffffc06). If this condition persists then please restore the database from a previous backup. This problem is likely due to faulty hardware. Please contact your hardware vendor for further assistance diagnosing the problem.
488 NTDS ISAM NTDS (396) NTDSA: Data inconsistency detected in table datatable of database C:WINDOWSNTDSntds.dit (4621,7905).
DCDIAG output: Starting test: Replications * Replications Check [Replications Check,<DC Name>] A recent replication attempt failed: From <source DC> to <destination DC> Naming Context: <DN path of failing naming context> The replication generated an error (8451): The replication operation encountered a database error The Replicate now command in the Active Directory Sites and Services snap-in DSSITE.MSC returns the following error: "The replication operation encountered a database error." Dialog title text: Replicate Now Dialog message text: The following error occurred during the attempt to synchronize naming context <DNS name of directory partition> from domain controller <source DC> to domain controller <destination DC>: The replication operation encountered a database error. This operation will not continue. Error codes decoded with Microsoft Exchange Server Error Code Lookuphttp://www.microsoft.com/download/en/details.aspx?displaylang=en&id=985 (err.exe) relating to the 8451 error and accompanying errors: C:&gt;err 8451 # for decimal 8451 / hex 0x2103 : ERROR_DS_DRA_DB_ERROR winerror.h # The replication operation encountered a database error. # 2 matches found for "8451" C:&gt;err -1414 # for decimal -1414 / hex 0xfffffa7a : JET_errSecondaryIndexCorrupted esent98.h # /* Secondary index is corrupt. The database must be # defragmented / # 1 matches found for "-1414" C:&gt;err -1526 # for decimal -1526 / hex 0xfffffa0a : JET_errLVCorrupted esent98.h # / Corruption encountered in long-value tree / # 1 matches found for "-1526" C:&gt;err -1603 # for decimal -1603 / hex 0xfffff9bd : JET_errNoCurrentRecord esent98.h # / Currency not on a record / # 1 matches found for "-1603" C:&gt;err -1075 # for decimal -1075 / hex 0xfffffbcd : JET_errOutOfLongValueIDs esent98.h # / Long-value ID counter has reached maximum value. # (perform offline defrag to reclaim free/unused # LongValueIDs) / # 1 matches found for "-1075" C:&gt;err -1601 # for decimal -1601 / hex 0xfffff9bf : JET_errRecordNotFound esent98.h # / The key was not found / # 1 matches found for "-1601" C:&gt;err -1047 # for decimal -1047 / hex 0xfffffbe9 : JET_errInvalidBufferSize esent98.h # / Data buffer does not match column size / # 1 matches found for "-1047" C:&gt;err -1018 # for decimal -1018 / hex 0xfffffc06 : JET_errReadVerifyFailure ese.h # / Checksum error on a database page / JET_errReadVerifyFailure esent98.h # / Checksum error on a database page / # 2 matches found for "-1018" C:&gt;err -1206 # for decimal -1206 / hex 0xfffffb4a : JET_errDatabaseCorrupted esent98.h # / Non database file or corrupted db */ # 1 matches found for "-1206"
Causes The status 8453: "The replication operation encountered a database error" has multiple root causes. Corrupted Active Directory database or Corrupted Active Directory database index which could be caused by: Failing hardware Disk Controller Controller cache Outdated drivers Controller Outdated firmware Machine BIOS Controller Disk Sudden power loss Lingering objects Long-value ID counter has reached maximum value The ESE column types JET_coltypLongText and JET_coltypLongBinary are called long value column types. These columns are large string and large binary objects that may be stored in separate B+ trees away from the primary index. When long values are stored separate from the primary record, they are internally keyed on a long value ID (LID). Invalid security descriptor in the msExchSecurityDescriptor attribute
Resolution Do not demote and re-promote to resolve the issue unless absolutely necessary. Gather data and make an informed decision. Enable NTDS diagnostic logging for Replication Events and Internal Processing at a level of 5. To increase NTDS diagnostic logging, change the following REG_DWORD values in the registry of the destination domain controller under the following registry key: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesNTDSDiagnostics Set the value of the following subkeys to 5: 5 Replication Events 9 Internal Processing Level 5 logging is extremely verbose and the values of both subkeys should be set back to the default of 0 after the problem is resolved. Filtering the Directory Services event log should be performed to isolate and identify these events Review the event logs for the new events that were generate from the increased logging for error values that will give a definitive view of the original 8451 error. For example, an Internal Processing event ID 1173 with error value of -1526 would indicate that we have a corruption in long-value tree. Based on the additional information from the increased logging consult the table below for a potential resolution.
Error (decimal) Error (hex) Symbolic name Error message Potential resolution
-1018 0xfffffc06 JET_errReadVerifyFailure Checksum error on a database page Hardware + firmware + driver check. Restore from backup. Demote/promote.
-1047 0xfffffbe9 JET_errInvalidBufferSize Data buffer does not match column size 832851 http://support.microsoft.com/default.aspx?scid=kb;EN-US;832851 Inbound Replication Fails on Domain Controllers with Event ID: 1699, Error 8451 or jet error -1601
-1075 0xfffffbcd JET_errOutOfLongValueIDs Long-value ID counter has reached maximum value. (perform offline defrag to reclaim free/unused LongValueIDs) Offline Defrag
-1206 0xfffffb4a JET_errDatabaseCorrupted Non database file or corrupted db Hardware + firmware + driver check. ESENTUTIL /K + NTDSUTIL FILE INTEGRITY + UTDSUTIL Semantic Database Analysis + Offline Defrag. Otherwise restore from backup or demote/promote
-1414 0xfffffa7a JET_errSecondaryIndexCorrupted Secondary index is corrupt. The database must be defragmented Offline Defrag
-1526 0xfffffa0a JET_errLVCorrupted Corruption encountered in long-value tree Hardware + firmware + driver check. ESENTUTIL /K + NTDSUTIL FILE INTEGRITY + UTDSUTIL Semantic Database Analysis + Offline Defrag. Otherwise restore from backup or demote/promote
-1601 0xfffff9bf JET_errRecordNotFound The key was not found Hardware + firmware + driver check. ESENTUTIL /K + NTDSUTIL FILE INTEGRITY + UTDSUTIL Semantic Database Analysis + Offline Defrag. Otherwise restore from backup or demote/promote
-1603 0xfffff9bd JET_errNoCurrentRecord Currency not on a record Hardware + firmware + driver check. ESENTUTIL /K + NTDSUTIL FILE INTEGRITY + UTDSUTIL Semantic Database Analysis + Offline Defrag. Otherwise restore from backup or demote/promote
8451 0x2103 ERROR_DS_DRA_DB_ERROR The replication operation encountered a database error Hardware + firmware + driver check. ESENTUTIL /K + NTDSUTIL FILE INTEGRITY + UTDSUTIL Semantic Database Analysis + Offline Defrag. Otherwise restore from backup or demote/promote
If all else fails then restore from backup or demote/promote.
More information Validate the vertical jet database stack from the bottom up (proceeding up to the next layer only when the underlying layer checks out "good"), just like you do with TCP.
Layer NTDSUTIL command ESENTUTL command
Physical consistency no equivalent ESENTUTL /K
ESE Logical consistency NTDSUTIL FILES INTEGRITY ESENTUTL /G
Application logical consistency NTDSUTIL ->Semantic database analysis + NTDSUTIL -> Offline Defrag no equivalent for SDA + ESENTUTL / D
Troubleshooting Active Directory Operations that fail with error 8451: The replication operation encountered a database error http://support.microsoft.com/kb/2645996/en-gb