stsadm migrateuser error: Object reference not set to an instance of an object
We need to do data migration that involve changing of the domain name, so after restoring the site using Content Database. The site is up and running, so next is to run stsadm migrateuser. After executing using farm administrator (with dbo rights to config db), stsadm -o migrateuser -oldlogin [olddomain]\username -newlogin [newdomain]\username -ignoresidhistory, there are always error at the end of command: Object reference not set to an instance of an object Checking through the log file: 03/19/2010 19:35:55.62 STSADM.EXE (0x1B44) 0x0ED8 Office Server Office Server General 7hvx Medium MigrateAccount: an exception occurred while migrating '[olddomain]\user' to '[newdomain]\user': System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Office.Server.UserProfiles.UserProfileManager.get_m_Site() at Microsoft.Office.Server.UserProfiles.UserProfileManager.get_IsSiteAdmin() at Microsoft.Office.Server.UserProfiles.UserProfileManager..ctor(ServerContext serverContext, Boolean IgnoreUserPrivacy, Boolean backwardCompatible) at Microsoft.Office.Server.UserProfiles.UserProfileManager..ctor(ServerContext serverContext) at Microsoft.SharePoint.Portal.PortalAccountMigrationManager.MigrateAccount(String strOldAccountName, String strNewAccountName, Boolean bEnforceSidHistory). 03/19/2010 19:35:55.62 STSADM.EXE (0x1B44) 0x0ED8 Windows SharePoint Services General 72ju High stsadm: Object reference not set to an instance of an object. Callstack: at Microsoft.Office.Server.UserProfiles.UserProfileManager.get_m_Site() at Microsoft.Office.Server.UserProfiles.UserProfileManager.get_IsSiteAdmin() at Microsoft.Office.Server.UserProfiles.UserProfileManager..ctor(ServerContext serverContext, Boolean IgnoreUserPrivacy, Boolean backwardCompatible) at Microsoft.Office.Server.UserProfiles.UserProfileManager..ctor(ServerContext serverContext) at Microsoft.SharePoint.Portal.PortalAccountMigrationManager.MigrateAccount(String strOldAccountName, String strNewAccountName, Boolean bEnforceSidHistory) at Microsoft.SharePoint.Portal.PortalAccountMigrationManager.MigrateUserAccount(String oldLogin, String newLogin, Boolean enforceSidHistory) at Microsof... 03/19/2010 19:35:55.62* STSADM.EXE (0x1B44) 0x0ED8 Windows SharePoint Services General 72ju High ...t.SharePoint.Administration.SPFarm.MigrateUserAccount(String oldLogin, String newLogin, Boolean enforceSidHistory) at Microsoft.SharePoint.StsAdmin.SPMigrateUser.Run(StringDictionary keyValues) at Microsoft.SharePoint.StsAdmin.SPStsAdmin.RunOperation(SPGlobalAdmin globalAdmin, String strOperation, StringDictionary keyValues, SPParamCollection pars) Any idea?
March 19th, 2010 3:15pm

Any one experience this before?
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2010 10:15am

Are any site collections locked that the user is a member of?http://www.spdan.com
May 7th, 2011 5:00pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics