AD Replication Error 8451: The Replication Operation Encountered a Database Error

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

Quick answer

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:

  1. If it happens once on one DC, do an offline defragmentation of that DC's database. If that doesn't fix it, demote and repromote the DC.
  2. If it keeps coming back, turn on NTDS diagnostic logging (Replication Events and Internal Processing at 5), find the JET error in the new events, and use the table below.
  3. Check disk, controller and controller cache hardware, drivers and firmware: failing hardware and sudden power loss are listed causes.
  4. If nothing works, restore the DC from backup or demote and repromote it.

What the error looks like

The error, and the JET errors Microsoft lists alongside it:

DecimalHexSymbolic nameMessage
84510x2103ERROR_DS_DRA_DB_ERRORThe replication operation encountered a database error.
-10180xfffffc06JET_errReadVerifyFailureChecksum error on a database page.
-10470xfffffbe9JET_errInvalidBufferSizeData buffer doesn't match column size.
-10750xfffffbcdJET_errOutOfLongValueIDsLong-value ID counter has reached maximum value (do an offline defragmentation to reclaim free and unused LongValueIDs).
-12060xfffffb4aJET_errDatabaseCorruptedNon database file or corrupted db.
-14140xfffffa7aJET_errSecondaryIndexCorruptedSecondary index is corrupt. The database must be defragmented.
-15260xfffffa0aJET_errLVCorruptedCorruption encountered in long-value tree.
-16010xfffff9bfJET_errRecordNotFoundThe key was not found.
-16030xfffff9bdJET_errNoCurrentRecordCurrency 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 sourceEvent IDEvent message
NTDS General / ActiveDirectory_DomainService1039 (extended error 8451)Internal event: Active Directory could not process the following object.
NTDS Replication / ActiveDirectory_DomainService1084 (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_DomainService1308 (extended error 8451)The Knowledge Consistency Checker (KCC) has detected that successive attempt to replicate with the following directory service failed.
NTDS Replication / ActiveDirectory_DomainService1699 (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 KCC1925 (extended error 8451)The attempt to establish a replication link for the following writable directory partition failed.
NTDS Replication2108 (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.

Why it happens

Microsoft lists several root causes:

Step 1: One DC, one occurrence: offline defrag, then demote/repromote

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):

  1. Back up Active Directory (a System State backup with Windows Server Backup).
  2. Stop the Active Directory Domain Services service, or boot into Directory Services Restore Mode: in msconfig > Boot, select Safe boot and Active Directory repair, restart, and sign in with the DSRM administrator password.
  3. Open a command prompt. NTDSUTIL builds a temporary database in the TEMP / TMP folder; if that volume is too small the compact fails with -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
  4. Run 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.
  5. If the compact succeeds, follow the on-screen instructions: delete the log files in the log directory (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.
  6. Start AD DS again, or clear Safe boot in msconfig and restart.

If offline defragmentation doesn't fix it, demote and repromote the DC.

Step 2: Recurring 8451: turn on diagnostic logging

On the destination DC, set these REG_DWORD values under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics to 5:

Level 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 sourceEvent IDEvent message (shortened)
Internal Processing1481 with error -1601Internal error: The operation on the object failed. ... NameErr: DSID-032500E8, problem 2001 (NO_OBJECT), data -1601
Internal Processing1173 with error -1075, -1526 or -1603Internal event: Active Directory has encountered the following exception and associated parameters. Exception: e0010004 ...
NTDS ISAM474 with error -1018The 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 ISAM488NTDS (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.

Step 3: Fix by JET error

ErrorNamePotential resolution
-1018JET_errReadVerifyFailureCheck hardware, firmware and drivers. Restore from backup, or demote/promote.
-1075JET_errOutOfLongValueIDsDo an offline defragmentation.
-1206JET_errDatabaseCorruptedCheck 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.
-1414JET_errSecondaryIndexCorruptedDo an offline defragmentation.
-1526JET_errLVCorruptedSame as -1206: hardware/firmware/drivers, Esentutl /k, Ntdsutil integrity and SDA, offline defrag; otherwise restore or demote/promote.
-1601JET_errRecordNotFoundSame as -1206.
-1603JET_errNoCurrentRecordSame as -1206.
8451 (no JET error found)ERROR_DS_DRA_DB_ERRORSame 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.

LayerNtdsutilEsentutl
1. Physical consistencyno equivalentEsentutl /k
2. ESE logical consistencyntdsutil, files, integrityEsentutl /g
3. Application logical consistencyntdsutil, semantic database analysis, then ntdsutil compactno 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.

Related tools and guides

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.

FAQ

What does replication error 8451 mean?

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.

How do I fix a single 8451 error on one domain controller?

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.

How do I find the JET error behind 8451?

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.

Is error 8451 caused by bad hardware?

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.

What does JET error -1075 mean with 8451?

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.

Want the full kit?

Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.