locked
Unable to upgrade from CRM 4.0 to CRM 2011 onpremise RRS feed

  • Question

  • ·         I tried to import an org from CRM 4.0 to CRM 2011. I got Import failed after import process initiated an was in DIffBuilder: pass 0. Also IIS6 Management Compatibility role services for IIS 7 is installed.  Following is the log i got.

    02:38:40|   Info| DiffBuilder: pass 0
    02:38:53|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.Setup.DiffBuilder.dll:Pass0; 00:00:12.5098400
    02:38:53|   Info| Cleaning Duplicate Detection Rule table as Duplicate detection is not solution aware.
    02:38:53|   Info| Did not detect single user -- not clearing pool
    02:38:53|Verbose| DatabaseAction execution time; MSCRM\DeleteDupDetectionRuleSolutionRows.sql; 00:00:00
    02:38:53|   Info| Create and populate inheriting entity upgrade tracking tables
    02:39:06|   Info| CrmAction execution time; UpgradeDatabaseAction; 00:01:24.7698033
    02:39:06|  Error| Installer Complete: OrganizationUpgrader - Error encountered
    02:39:06|  Error| Exception occured during Microsoft.Crm.Tools.Admin.OrganizationUpgrader: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed.
    InnerException:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Crm.Setup.DiffBuilder.AddEntityDataToInheritingUpgradeTables(EntityMetadata newEntityMetadata, EntityMetadata oldEntityMetadata, ISqlExecutionContext sqlContext)
       at Microsoft.Crm.Setup.DiffBuilder.CreateAndPopulateInheritingEntityUpgradeTables(String metadataLocation)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at Microsoft.Crm.Setup.Database.DllMethodAction.Execute()
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)
       at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
       at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
    InnerException:
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Crm.Setup.DiffBuilder.AddEntityDataToInheritingUpgradeTables(EntityMetadata newEntityMetadata, EntityMetadata oldEntityMetadata, ISqlExecutionContext sqlContext)
       at Microsoft.Crm.Setup.DiffBuilder.CreateAndPopulateInheritingEntityUpgradeTables(String metadataLocation)

    02:39:06|   Info| Setting organization state.  New state = Failed
    02:39:06|  Error| Upgrade Organization with Id=bc15841a-d33f-de11-80c8-00219b8a1a7c failed with Exception:
    System.Exception: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Crm.Setup.DiffBuilder.AddEntityDataToInheritingUpgradeTables(EntityMetadata newEntityMetadata, EntityMetadata oldEntityMetadata, ISqlExecutionContext sqlContext)
       at Microsoft.Crm.Setup.DiffBuilder.CreateAndPopulateInheritingEntityUpgradeTables(String metadataLocation)
       --- End of inner exception stack trace ---

    at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at Microsoft.Crm.Setup.Database.DllMethodAction.Execute()
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)
       at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
       at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)


    Danny
    Wednesday, March 23, 2011 3:32 PM

All replies

  • High Dan.

    This line in your error: Exception occured during Microsoft.Crm.Tools.Admin.OrganizationUpgrader: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed.

     

    Seems to indicate some basic failure in permissions to the database.

    Make sure that the deployment administrator account is the same on the new instance.

    There are also a few more requiements to having IIS 7 run correctly on Windows 2008.

    It would be good to review them.

    For instance, this many not be your problem but many forget the server role of fileserver and neglect the installation of the indexing service.

     

     

     


     

     


    Curtis J Spanburgh
    Monday, April 4, 2011 6:01 PM
    Moderator