My guess: You have two users with identical display names in your directory.
targetUser ??= targetUsers.SingleOrDefault(x => x.DisplayName == sourceUser.DisplayName);
There could certainly be a better error message here... would likely be good to actually show the duplicate.
Originally posted by @MrHinsh in #2266 (reply in thread)