DC Promotion Fails with a Schema Mismatch Error (Dcpromo)

The AD DS installation wizard fails with a schema mismatch between the servers involved. The cause is usually on the source DC: duplicate multi-valued attribute values, database corruption or attributes left by a schema deletion.

Home › Guides › DC promotion: schema mismatch

Last updated 20 November 2026

Quick answer

The Active Directory Installation Wizard (Dcpromo.exe) stops with a schema mismatch error while it replicates a directory partition from the helper (source) domain controller. Microsoft's article on this error (KB 838179) says the message is misleading: the root cause may have nothing to do with the schema partition or the objects in it. It lists three causes on the source DC:

  1. Its copy of Active Directory contains duplicate values in a multi-valued attribute (a database constraint violation).
  2. One or more attributes or pages in its database are corrupted.
  3. It has attributes in its database that the current schema no longer covers, because of a schema deletion.

To find which one, turn on NTDS diagnostic logging on the source DC, force the new DC to replicate from that source, and read the last object it sent (events 1240 on the source and 1203 on the destination). Then remove the duplicate value, deal with the corrupt object or database, or strip the attributes that have no schema definition.

If you see the same error as replication error 8418 between existing DCs, or right after a schema update, start with replication error 8418 (schema mismatch) instead: it covers schema version checks and the transient case.

What the error looks like

On Windows Server 2003 the wizard reports:

Active Directory could not replicate the directory partition <DN path for partition> from the remote domain controller <fully qualified computer name of the source domain controller>. The replication operation failed because of a schema mismatch between the servers involved.

On Windows 2000 the text is:

The Directory Service failed to replicate the partition <partition name> from remote server <remote server name>. The replication operation failed because of a schema mismatch between the servers involved.

Newer versions of the AD DS installation wizard show the same "schema mismatch between the servers involved" sentence; the DCPromo.log lines and error code 8418 are in the 8418 guide.

CauseWhere it isFix
1. Duplicate values in a multi-valued attributeAn object on the source DCMethod 1, part 4: find the object, remove one duplicate value
2. Corrupted attributes or database pagesThe source DC's databaseMethod 1, part 5: repadmin /showmeta, ntdsutil files integrity, then rebuild or restore
3. Attributes not covered by the current schema (schema deletion)An object on the source DCMethod 2: delete the object, remove the attributes, or re-add the schema entries

Method 1, part 1: Turn on diagnostic logging on the source DC

Back up the registry first. On the source DC, open HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Ntds\Diagnostics and set these entries to 5:

From an elevated command prompt the same change looks like this (repeat for each entry name; NTDS\Diagnostics values are DWORDs):

reg add "HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics" /v "5 Replication Events" /t REG_DWORD /d 5 /f

Then export the Diagnostics key to a file named Ntds_logging.reg on the administrator's desktop of the server that gets the error, so you can import the same settings there in part 3:

reg export "HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics" Ntds_logging.reg

Method 1, part 2: Make the new DC replicate from the logging source

The new DC has to pull Active Directory from a source DC that has the extra logging turned on. Either:

Create an unattended Active Directory Installation Wizard answer file and run the wizard again on the server that reports the error. Microsoft notes how the wizard treats the logging settings:

Method 1, part 3: Pre-populate the logging on the destination

Copy Ntds_logging.reg from part 1 to the administrator's desktop on the computer being promoted and double-click it at the right moment for its Windows version (before the attempt, or as soon as schema replication starts on Windows 2000). That way both ends of the failing replication log the object they were working on.

Method 1, part 4: Find duplicate values in a multi-valued attribute

Read the Directory Service event logs on both servers:

The problem object is either the last object or attribute in the source DC's log, or the object in the same partition with the next highest update sequence number (USN). Export the object with ldifde:

ldifde -f MISMATCH -d "<DN of the object in the source DC's event 1240>"

Open the output in Notepad and look for an attribute that appears twice with the same value. Microsoft's example is an Exchange attribute, msExchMonitoringResponses, listed twice with an identical base64 value. If you find a duplicate, remove one of the values with ADSI Edit (adsiedit.msc) or ldifde, then run the installation wizard again.

Method 1, part 5: Look for database corruption on the source DC

If there is no duplicate, the source DC's database may be corrupt.

  1. In the source DC's Directory Service log, find the last event 1240 that was logged before an Internal Processing event 1173, and note the DN of the object it names.
  2. Show that object's replication metadata on the source DC console, for example:
    repadmin /showmeta CN=Secret,CN=Schema,CN=Configuration,DC=CORP,DC=COM
  3. Look for values that don't make sense in the Local USN and Originating time columns. In Microsoft's example, defaultObjectCategory and objectClass show what looks like USN numbers in the wrong place and an originating date of 4446-09-07.
  4. If the object isn't critical, back it up with ldifde and delete it. Don't delete problem objects in the schema partition.
  5. Restart the source DC in Directory Services Restore Mode (set or reset the DSRM password first if you need to) and run an ntdsutil files integrity check. Clients that try to reach DFS root or link information on that DC may get access denied while it is in DSRM; that is by design.

If the integrity check reports Jet error -1206, Microsoft says not to repair the database with ntdsutil or esentutl under any circumstances. Instead:

The meaning of -1206 and the other Jet errors, and the bottom-up database checks, are in AD Jet database errors and recovery.

Method 1, part 6: Turn the logging off again

When you are done, set the same five Ntds\Diagnostics entries back to 0 on every DC where you changed them: 5 Replication Events, 7 Internal Configuration, 8 Directory Access, 9 Internal Processing and 24 DS Schema.

Method 2: Attributes the schema no longer covers

The third cause is a helper DC with attributes in its database that the current schema doesn't define. Microsoft gives one way this happens: a schema object was deleted on a Windows 2000 DC before Windows 2000 Service Pack 3 was installed.

  1. Find the object with the extra attributes. On Windows 2000 the source DC logs event 1039 with the DN of the affected object. On later versions, set replication event logging to level 5 on the source (5 Replication Events = 5): during outbound replication it logs each object and attribute it ships. When the error occurs, look for the next object that would have been shipped to the destination.
  2. Then do one or more of these:
    • Delete the object. The offending attributes are stripped and the tombstone replicates.
    • Edit the object to remove the attributes in question.
    • Re-add the schema entries that were removed.

Then run the installation again. If promotion then fails with a different error, see AD DS install: the specified user already exists or the common AD replication errors table.

Related tools and guides

Look up 1203, 1039 and 1173 in the Windows Event ID Lookup, copy the reg add for NTDS Diagnostics, ldifde and repadmin /showmeta lines from the PowerShell Cheat Sheet, pull the object DN and attribute names out of exported event 1240 text with the Regex Tester, check that the new DC and its source DC sit on the site subnets you expect with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the network adapter vendor on the server you are promoting with the MAC Vendor Lookup. Related guides: replication error 8418 (schema mismatch), AD DS install: the specified user already exists, AD Jet database errors and common AD replication errors.

Every AD replication error code with its cause and fix: common Active Directory replication errors.

FAQ

Why does DC promotion fail with a schema mismatch?

Microsoft lists three causes on the source (helper) domain controller: duplicate values in a multi-valued attribute, corrupted attributes or database pages, or attributes that the current schema no longer covers because a schema object was deleted. Despite the message, the schema partition itself is often fine.

Is the schema mismatch error during dcpromo the same as replication error 8418?

It is the same error text, 8418 ERROR_DS_DRA_SCHEMA_MISMATCH. During promotion, Microsoft's dcpromo article points first at bad data on the source DC. Between existing DCs, or right after a schema update, check schema versions and the transient case described in the 8418 guide.

Which diagnostic logging should I turn on?

On the source DC set 5 Replication Events, 7 Internal Configuration, 8 Directory Access, 9 Internal Processing and 24 DS Schema under HKLM\SYSTEM\CurrentControlSet\Services\Ntds\Diagnostics to 5. Set them back to 0 when you are done.

How do I find the object that breaks promotion?

On the source DC, find the last event 1240: it names the last object and attribute replicated to the new DC. The problem object is that one or the next object by USN in the same partition. Export it with ldifde -f MISMATCH -d plus the DN and look for a duplicated value.

What if ntdsutil files integrity reports Jet error -1206?

Don't repair the database with ntdsutil or esentutl. Promote from another source DC with the bad one offline, demote or force-demote the bad DC and clean up its metadata, or restore a valid system state backup if it is the only DC in its domain.

Want the full kit?

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