SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

MySiteCleanup: Unable to delete user profile (UserX). Exception: Microsoft.Office.Server.UserProfiles.DSInvalidDomainNameException: The format of the specified domain name is invalid. ---> System.ComponentModel.Win32Exception: The format of the specified domain name is invalid --- End of inner exception stack trace --- at Microsoft.Office.Server.UserProfiles.DS.ProcessDCWIn32Exception(Int32 ret, Int32 win32err) at Microsoft.Office.Server.UserProfiles.DS.GetDomainControllerInfo(String strDomain) at Microsoft.Office.Server.UserProfiles.DS.GetDCName(String strDomain) at Microsoft.Office.Server.UserProfiles.MySiteCleanupJob.IsActiveUser(LDAPConnection connLDAP, String filter, Credentials credentials) at Microsoft.Office.Server.UserProfiles.MySiteCleanupJob.IsActiveUser(UserProfile up, UserProfileConfigManager upcm, String searchApplicationName) at Microsoft.Office.Server.UserProfiles.MySiteCleanupJob.ProcessPendingDeletion(String username, ServerContext context, UserProfileManager upm, UserProfileConfigManager upcm, String searchApplicationName)

share|improve this question
@Crazy: Please pay attention to the tags you are using and make sure they relate directly to your questions. Thanks! – Alex Angas Apr 2 '10 at 0:04
up vote 0 down vote accepted

The most descriptive part of this message is "The format of the specified domain name is invalid.". It looks as it can't find a "my site" for a user. Can you identify for which user it's trying to clean up "my site" (recently deleted or disabled) and see in his/her profile the My Site link. If the link is there and "my site" isn't, that could be one problem.

share|improve this answer

It looks like you have serious issues with your installation (considering all your posts here). A couple of questions:

  • Have you fiddled with the SharePoint databases?
  • Have you changed domain or similar on your SharePoint servers?
  • Have you recently installed or changed your SharePoint servers in any way?
  • Do you have any warnings or errors in the Windows Event Logs relating to this?
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.