Fix AD replication error 8451 (the replication operation encountered a database error): decode the JET error behind it, check disk hardware and firmware, run an offline defrag or integrity checks, or demote and repromote.
Home › Guides › AD replication error 8451
Last updated 19 November 2026
Error 8451 (0x2103, ERROR_DS_DRA_DB_ERROR) means a DC hit a problem in its own Active Directory database (ntds.dit) while replicating. It usually comes with a more specific JET (ESE) database error, such as -1018 (checksum error on a database page), -1414 (secondary index is corrupt) or -1075 (long-value ID counter has reached maximum value). The fix:
The error, and the JET errors Microsoft lists alongside it:
| Decimal | Hex | Symbolic name | Message |
|---|---|---|---|
| 8451 | 0x2103 | ERROR_DS_DRA_DB_ERROR | The replication operation encountered a database error. |
| -1018 | 0xfffffc06 | JET_errReadVerifyFailure | Checksum error on a database page. |
| -1047 | 0xfffffbe9 | JET_errInvalidBufferSize | Data buffer doesn't match column size. |
| -1075 | 0xfffffbcd | JET_errOutOfLongValueIDs | Long-value ID counter has reached maximum value (do an offline defragmentation to reclaim free and unused LongValueIDs). |
| -1206 | 0xfffffb4a | JET_errDatabaseCorrupted | Non database file or corrupted db. |
| -1414 | 0xfffffa7a | JET_errSecondaryIndexCorrupted | Secondary index is corrupt. The database must be defragmented. |
| -1526 | 0xfffffa0a | JET_errLVCorrupted | Corruption encountered in long-value tree. |
| -1601 | 0xfffff9bf | JET_errRecordNotFound | The key was not found. |
| -1603 | 0xfffff9bd | JET_errNoCurrentRecord | Currency not on a record. |
dcdiag:
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
repadmin commands that commonly report 8451 include /kcc, /rehost, /replicate, /replsum, /showrepl, /showreps, /showutdvec and /syncall. In repadmin /showreps output:
DC=contoso,DC=com
Default-First-Site-Name\CONTOSO-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>.
DC promotion (Dcpromo) can fail with "Active Directory Domain Services could not replicate the directory partition <DN path of failing partition> from the remote Active Directory Domain Controller <helper DC>... The replication operation encountered a database error." and Dcpromo.log shows:
[INFO] NstdInstall for contoso.com returned 8451 [INFO] DsRolepInstallDs returned 8451 [ERROR] Failed to install to Directory Service (8451)
Replicate now in Active Directory Sites and Services fails with "The following error occurred during the attempt to synchronize naming context <directory partition name> from Domain Controller <Source DC> to Domain Controller <Destination DC>: The replication operation encountered a database error. The operation will not continue."
Events that commonly cite 8451:
| Event source | Event ID | Event message |
|---|---|---|
| NTDS General / ActiveDirectory_DomainService | 1039 (extended error 8451) | Internal event: Active Directory could not process the following object. |
| NTDS Replication / ActiveDirectory_DomainService | 1084 (extended error 8451) | Internal event: Active Directory could not update the following object with changes received from the following source domain controller. It is because an error occurred during the application of the changes to Active Directory on the domain controller. |
| ActiveDirectory_DomainService | 1308 (extended error 8451) | The Knowledge Consistency Checker (KCC) has detected that successive attempt to replicate with the following directory service failed. |
| NTDS Replication / ActiveDirectory_DomainService | 1699 (extended error 8451) | 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. |
| NTDS KCC | 1925 (extended error 8451) | The attempt to establish a replication link for the following writable directory partition failed. |
| NTDS Replication | 2108 (8451 with secondary error -1075, -1526 or -1414) | This event contains REPAIR PROCEDURES for the 1084 event that 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. |
Event 2108 names the object, its GUID and the source DC, and its User Action ends: "If none of these actions succeed and the replication error continues, you should demote this domain controller and promote it again." The Secondary Error value is the JET error to look up.
Microsoft lists several root causes:
msExchSecurityDescriptor attribute.If the error happens on only one DC and looks isolated, Microsoft says the best and quickest fix is an offline defragmentation of that DC's database. An offline defrag creates a new ntds.dit without internal fragmentation and re-creates all indexes. (Online defragmentation, which runs as part of garbage collection every 12 hours by default, doesn't do that.) The steps (KB 232122):
msconfig > Boot, select Safe boot and Active Directory repair, restart, and sign in with the DSRM administrator password.-1808 (JET_errDiskFull, No space left on disk), so point them at a volume with room first:md d:\temp set tmp=d:\temp set temp=d:\temp
ntdsutil, then: activate instance ntds, files, info (note the database and log paths), then compact to <drive>:\<directory> on a volume with enough space (quote paths with spaces, for example compact to "c:\new folder"). Type quit twice.del <drive>:\<path to log files>\*.log) and copy the new ntds.dit over the old one in the path you noted. You don't have to delete Edb.chk.If offline defragmentation doesn't fix it, demote and repromote the DC.
On the destination DC, set these REG_DWORD values under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics to 5:
Replication EventsInternal ProcessingLevel 5 is extremely verbose: set both back to the default 0 once the problem is solved, and filter the Directory Service log to find the events, for example:
Get-WinEvent -FilterHashtable @{LogName='Directory Service'; Id=1039,1084,2108,1173,1481}
Events that often show up next to 8451 with higher logging, and the JET error they carry:
| Event source | Event ID | Event message (shortened) |
|---|---|---|
| Internal Processing | 1481 with error -1601 | Internal error: The operation on the object failed. ... NameErr: DSID-032500E8, problem 2001 (NO_OBJECT), data -1601 |
| Internal Processing | 1173 with error -1075, -1526 or -1603 | Internal event: Active Directory has encountered the following exception and associated parameters. Exception: e0010004 ... |
| NTDS ISAM | 474 with error -1018 | The database page read from the file 'E:\NTDS\Data\ntds.dit' ... failed verification due to a page checksum mismatch. ... If this condition persists, restore the database from a previous backup. This problem is likely due to faulty hardware. |
| NTDS ISAM | 488 | NTDS (396) NTDSA: Data inconsistency detected in table datatable of database C:\WINDOWS\NTDS\ntds.dit |
For example, Internal Processing event 1173 with error -1526 means corruption in the long-value tree. Microsoft's Error Lookup Tool (err) decodes these codes, for example err -1414 returns JET_errSecondaryIndexCorrupted.
| Error | Name | Potential resolution |
|---|---|---|
| -1018 | JET_errReadVerifyFailure | Check hardware, firmware and drivers. Restore from backup, or demote/promote. |
| -1075 | JET_errOutOfLongValueIDs | Do an offline defragmentation. |
| -1206 | JET_errDatabaseCorrupted | Check hardware, firmware and drivers. Run Esentutl /k. Run the Ntdsutil file integrity and semantic database analysis (SDA) commands, then do an offline defragmentation. Otherwise restore from backup or demote/promote. |
| -1414 | JET_errSecondaryIndexCorrupted | Do an offline defragmentation. |
| -1526 | JET_errLVCorrupted | Same as -1206: hardware/firmware/drivers, Esentutl /k, Ntdsutil integrity and SDA, offline defrag; otherwise restore or demote/promote. |
| -1601 | JET_errRecordNotFound | Same as -1206. |
| -1603 | JET_errNoCurrentRecord | Same as -1206. |
| 8451 (no JET error found) | ERROR_DS_DRA_DB_ERROR | Same as -1206. |
If all of these fail, restore the DC from backup, or demote and repromote it.
Every Jet error Microsoft lists for domain controllers (-501 to -1811), with the hardware checks and file and permission checks in Directory Services Restore Mode: Active Directory Jet database errors and recovery steps.
Microsoft compares checking the JET database to checking a network stack: work up from the bottom and only move to the next layer once the one below is good.
| Layer | Ntdsutil | Esentutl |
|---|---|---|
| 1. Physical consistency | no equivalent | Esentutl /k |
| 2. ESE logical consistency | ntdsutil, files, integrity | Esentutl /g |
| 3. Application logical consistency | ntdsutil, semantic database analysis, then ntdsutil compact | no equivalent for SDA, then Esentutl /d |
Semantic database analysis (KB 315136) checks the data against AD rules rather than ESE rules and needs the database offline (Directory Services Restore Mode). In ntdsutil, type semantic database analysis, then go; the report is written to a Dsdit.dmp.n file in the current folder. Type q twice to exit.
Look up 1084, 2108, 1173, 1481 and 474 in the Windows Event ID Lookup, copy the Get-WinEvent filter for those events from the PowerShell Cheat Sheet, pull the Secondary Error value and object GUID out of event 2108 text with the Regex Tester, check whether DCs that fail together share a site subnet with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the storage controller or NIC vendor from a MAC address with the MAC Vendor Lookup. Related guides: replication error 8606 (lingering objects), replication errors 8456/8457, replication error 1753 and replication error 8464. Corruption is also a listed cause of replication error 8333 (directory object not found), and a DC that applies changes slowly reports 8461 or 8477. A DC that can't write to its database or logs at all reports replication error 1127 (disk operation failed), and an object too large for a database record reports replication error 8304.
Every AD replication error code with its cause and fix: common Active Directory replication errors.
The replication operation encountered a database error (0x2103, ERROR_DS_DRA_DB_ERROR). The DC hit a problem in its own ntds.dit database while replicating, usually with a more specific JET error such as -1018, -1414, -1526 or -1075.
Microsoft says the quickest fix for an isolated case is an offline defragmentation of that DC's database with ntdsutil (files, compact to a new folder, then copy the new ntds.dit back). If that doesn't fix it, demote and repromote the DC.
Look at the Secondary Error value in NTDS Replication event 2108. If the error keeps coming back, set Replication Events and Internal Processing to 5 under HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics and read the new 1173, 1481 and NTDS ISAM 474 events. Set the values back to 0 afterwards.
It can be. Microsoft lists failing disks, controllers and controller cache, outdated controller drivers, outdated BIOS, controller or disk firmware, and sudden power loss as causes of database corruption. JET error -1018 (page checksum mismatch, NTDS ISAM event 474) is likely due to faulty hardware.
JET_errOutOfLongValueIDs: the long-value ID counter has reached its maximum. Microsoft's fix is an offline defragmentation of the AD database, which reclaims free and unused long-value IDs.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.