What does Windows error code 8540 (ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH) mean?

 
Previous Next
ERROR_DS_SRC_SID_EXISTS_IN_FOREST ERROR_SAM_INIT_FAILURE

ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH

The target object is not the same kind of security principal

Migration operations that merge identity state into an existing destination object require compatible source and destination classes. A source user cannot safely be matched to an unrelated group, and a group cannot inherit the account-specific attributes of a user. Similar names or matching account strings do not override the structural-class requirement.

Resolve both objects by GUID and inspect their most-specific structural classes, SID state, and account attributes. Determine whether the destination was pre-created with the wrong class or whether the migration mapping selected the wrong object. Correct the mapping or recreate the target using the supported class; do not attempt to change an object’s structural class by editing objectClass, because Active Directory schema rules do not permit arbitrary class conversion.

What to inspect

  • Compare structural objectClass values on source and destination.
  • Review migration matching rules for same-name objects.
  • Recreate an incorrectly pre-staged target with the proper class.

References


Looking for a different code? Search another status or error code.