Quantcast
Viewing all articles
Browse latest Browse all 21070

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?


Viewing all articles
Browse latest Browse all 21070

Trending Articles