locked
Rollup 12 installation error RRS feed

  • Question

  • Hi all,

    I'm facing an error when trying to install rollup 12 on CRM server.

    Below is the error log:

    Action Microsoft.Crm.Setup.Common.Update.DBUpdateAction failed.
    Exception has been thrown by the target of an invocation.
    Object reference not set to an instance of an object.

    17:40:06|  Error| System.Configuration.Install.InstallException ---> System.Exception: Action Microsoft.Crm.Setup.Common.Update.DBUpdateAction 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.Metadata.PreloadedMetadataCacheDataProvider.AddAttributesToCollections(IPreloadedMetadataInitializationProducerContext context)
       at Microsoft.Crm.Metadata.PreloadedMetadataCacheDataProvider.Initialize(Guid organizationId, MetadataContainer container)
       at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.CreateMetadataCacheDataProvider(MetadataContainer container, Guid organizationId)
       at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.BuildMetadataCacheFromMetadataContainer(MetadataContainer container, LoadMasks masks, Guid organizationId)
       at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.BuildMetadataCacheFromDataSet(DataSet data, LoadMasks masks, Guid organizationId)
       at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.LoadCacheFromDatabaseInternal(LoadMasks masks, CrmDbConnection connection, CrmTransaction transaction, Guid organizationId)
       at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.LoadCacheFromDatabase(LoadMasks masks, IOrganizationContext context)
       at Microsoft.Crm.Metadata.DynamicMetadataCacheFactory.LoadMetadataCache(LoadMethod method, CacheType type, LoadMasks masks, IOrganizationContext context)
       at Microsoft.Crm.Setup.DiffBuilder.PopulateCaches(Boolean loadIndexes, Boolean loadPrivileges, CacheType existingMetadataCacheType)
       at Microsoft.Crm.Setup.DiffBuilder.Pass1HotFix(String metadataLocation, String parseMasksValue)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle 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 System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)
       at Microsoft.Crm.Setup.Database.DllMethodAction.Execute()
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseCollection releases, Int32 currentProgress)
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.installInternal()
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase)
       at Microsoft.Crm.Setup.Common.Update.DBUpdateDatabaseInstaller.ServerInstall(ArrayList orgIdArray)
       at Microsoft.Crm.Setup.Common.Update.DBUpdateDatabaseInstaller.Install(String kbNumber)
       at Microsoft.Crm.Setup.Common.Update.DBUpdateAction.Do(IDictionary parameters)
       at Microsoft.Crm.Setup.Common.Action.ExecuteAction(Action action, IDictionary parameters, Boolean undo)
       --- End of inner exception stack trace ---
       at Microsoft.Crm.UpdateWrapper.UpdateSetup.Install(IDictionary data)
       at Microsoft.Crm.UpdateWrapper.UpdateSetup.Run()
       --- End of inner exception stack trace ---
       at Microsoft.Crm.UpdateWrapper.UpdateSetup.Run()
       at Microsoft.Crm.UpdateWrapper.UpdateSetup.InternalMain(String[] args)

     

    Is the metadata corrupted?

    Monday, November 8, 2010 9:33 AM

Answers

  • Hi Suiram,

    Have you did any unsupported customization especially on attribute? for example, set iscustomizable from 0 to 1 for system attribute .. etc

    My problem in this thread was due to this issue.

    Hope it helps.

     

    • Marked as answer by g8dnitez Wednesday, April 27, 2011 9:30 AM
    Wednesday, April 27, 2011 9:29 AM

All replies

  • Hi,

    Pls try to remove UR12 and re-install.

    Regards

    Vinh Nguyen 

     

    Monday, November 8, 2010 9:55 AM
  • Hi Vinh Nguyen,

    THis is the error when I trying to install RU12 on CRM server.

    For your information, I never apply any rollup on this server.

    Thanks.

    Monday, November 8, 2010 10:03 AM
  • I faced a simular issue.  Please check the MSCRM Registry and ensure all Registry Key values are pointing to the correct server addresses.

    On my setup there was an issue where the Discovery Services had the wrong URL allocated to it.

    HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\MSCRM

     

     


    Your Trusted Technology Partner
    Monday, November 8, 2010 11:12 AM
  • Hi,

    I have checked the registry in HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\MSCRM. Everything is fine.

    Any possible solutions?

    Thanks.

    Tuesday, November 9, 2010 2:26 AM
  • Hi,

    Please apply Rollup 7.0 before u apply any latest rollup as UR 7.0 was a major one with loads of hot fixes.

    Regards

    TGB


    Microsoft Certified Business Management Solutions Specialist
    • Proposed as answer by The Great Believer Tuesday, November 9, 2010 7:55 PM
    • Marked as answer by Jim Glass Jr Tuesday, November 9, 2010 8:02 PM
    • Unmarked as answer by g8dnitez Wednesday, November 10, 2010 6:18 AM
    Tuesday, November 9, 2010 7:55 PM
  • Hi,

    Please apply Rollup 7.0 before u apply any latest rollup as UR 7.0 was a major one with loads of hot fixes.

    Regards

    TGB


    Microsoft Certified Business Management Solutions Specialist


    Thanks but according to Microsoft
    "Update Rollup 1, Update Rollup 2, Update Rollup 3, Update Rollup 4, Update Rollup 5, Update Rollup 6, Update Rollup 7, Update Rollup 8, Update Rollup 9, Update Rollup 10 and Update Rollup 11 are not prerequisites for the server section of Microsoft Dynamics CRM."

    Anyway, I will try to install RU7 later.

    Wednesday, November 10, 2010 2:40 AM
  • Tried to install RU7 just now and failed. The error are the same.

    Wednesday, November 10, 2010 6:19 AM
  • Did you get any errors when u were installing Microsoft CRM 4.0 initially? Or any errors that u ignored while installation? If yes try repairing your CRM and ten try to install rollups.
    Microsoft Certified Business Management Solutions Specialist
    Wednesday, November 10, 2010 9:03 AM
  • Did you get any errors when u were installing Microsoft CRM 4.0 initially? Or any errors that u ignored while installation? If yes try repairing your CRM and ten try to install rollups.
    Microsoft Certified Business Management Solutions Specialist

    No error. Do I need to enable some services or port for installation? They are two servers in the environment (CRM server and SQL server).
    Thursday, November 11, 2010 2:46 AM
  • Hi,

    Does your sql database name have any non letter characters such as dashes - ?

    Or please check these links may be you can find any clue.

    http://weblogs.asp.net/pabloperalta/archive/2010/08/05/microsoft-crm-setup-common-update-dbupdateaction-failed.aspx

    Regards

    TGB


    Microsoft Certified Business Management Solutions Specialist
    • Marked as answer by Donna EdwardsMVP Monday, November 15, 2010 6:07 PM
    • Unmarked as answer by g8dnitez Wednesday, April 27, 2011 9:30 AM
    Thursday, November 11, 2010 3:40 AM
  • I am trying to move my CRM 4.0 to a new computer. After installing CRM 4.0 plus latest rollups with a new organization everything was fine. After moving my old database i got this error when trying to access the website:

     

    at ErrorInformation.LogError()
    at MainApplication.Application_Error(Object sender, EventArgs eventArguments)
    at EventHandler.Invoke(Object sender, EventArgs e)
    at HttpApplication.RaiseOnError()
    at ApplicationStepManager.ResumeSteps(Exception error)
    at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
    at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
    at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
    at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
    >MSCRM Error Report:
    --------------------------------------------------------------------------------------------------------
    Error: Object reference not set to an instance of an object.
    Error Message: Object reference not set to an instance of an object.
    Source File: Not available
    Line Number: Not available
    Request URL: http://localhost/pyramidSoftware/default.aspx
    Stack Trace Info: [NullReferenceException: Object reference not set to an instance of an object.]
    at Microsoft.Crm.Metadata.PreloadedMetadataCacheDataProvider.AddAttributesToCollections(IPreloadedMetadataInitializationProducerContext context)
    at Microsoft.Crm.Metadata.PreloadedMetadataCacheDataProvider.Initialize(Guid organizationId, MetadataContainer container)
    at Microsoft.Crm.Metadata.MultiOrgSharableMetadataCacheLoader.CreateMetadataCacheDataProvider(MetadataContainer container, Guid organizationId)
    at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.BuildMetadataCacheFromMetadataContainer(MetadataContainer container, LoadMasks masks, Guid organizationId)
    at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.BuildMetadataCacheFromDataSet(DataSet data, LoadMasks masks, Guid organizationId)
    at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.LoadCacheFromDatabaseInternal(LoadMasks masks, CrmDbConnection connection, CrmTransaction transaction, Guid organizationId)
    at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.LoadCacheFromDatabase(LoadMasks masks, IOrganizationContext context)
    at Microsoft.Crm.Metadata.DynamicMetadataCacheFactory.LoadMetadataCache(LoadMethod method, CacheType type, IOrganizationContext context)
    at Microsoft.Crm.Metadata.MetadataCache.LoadCache(IOrganizationContext context)
    at Microsoft.Crm.Metadata.MetadataCache.GetInstance(IOrganizationContext context)
    at Microsoft.Crm.BusinessEntities.BusinessEntityMoniker..ctor(Guid id, String entityName, Guid organizationId)
    at Microsoft.Crm.Caching.UserDataCacheLoader.LoadCacheData(Guid key, ExecutionContext context)
    at Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)
    at Microsoft.Crm.Caching.BasicCrmCache`2.CreateEntry(TKey key, IOrganizationContext context)
    at Microsoft.Crm.Caching.BasicCrmCache`2.LookupEntry(TKey key, IOrganizationContext context)
    at Microsoft.Crm.BusinessEntities.SecurityLibrary.GetUserInfoInternal(WindowsIdentity identity, IOrganizationContext context, UserAuth& userInfo)
    at Microsoft.Crm.BusinessEntities.SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId)
    at Microsoft.Crm.Authentication.CrmWindowsIdentity..ctor(WindowsIdentity innerIdentity, Boolean publishCrmUser, Guid organizationId)
    at Microsoft.Crm.Authentication.WindowAuthenticationProviderBase.Authenticate(HttpApplication application)
    at Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application)
    at Microsoft.Crm.Authentication.AuthenticationPipeline.Authenticate(HttpApplication application)
    at Microsoft.Crm.Authentication.AuthenticationEngine.Execute(Object sender, EventArgs e)
    at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    I tried uninstalling the rollups and I still get the same error. I tried the solution on this page and nothing works. Any idea?


    Some day I'm going to be rich. Until then I'm busy...working...
    Wednesday, April 27, 2011 6:46 AM
  • Hi Suiram,

    Have you did any unsupported customization especially on attribute? for example, set iscustomizable from 0 to 1 for system attribute .. etc

    My problem in this thread was due to this issue.

    Hope it helps.

     

    • Marked as answer by g8dnitez Wednesday, April 27, 2011 9:30 AM
    Wednesday, April 27, 2011 9:29 AM
  • Hello g8dnitez,

     

    We made customizations. I do not know if those was supported or unsupported. I know for sure that all the customization were made using CRM interface (Customization options in Settings).

    Thank you anyway.


    Some day I'm going to be rich. Until then I'm busy...working...
    Wednesday, April 27, 2011 9:49 AM
  • Hi Suiram,

    Can you check the metadata table from MSCRM_CONFIG database, it should be 1 entry for each entity.

     

    select * from MetadataSchema.Attribute
    where entityid in (select entityid from entity where logicalname in ('lead')) and logicalname = 'fullname'

      

    select * from MetadataSchema.Attribute
    where entityid in (select entityid from entity where logicalname in ('contact')) and logicalname = 'fullname'


    Wednesday, April 27, 2011 10:29 AM
  • Are you sure you are talking about metadata table? I can't find this table in MSCRM_CONFIG.
    Some day I'm going to be rich. Until then I'm busy...working...
    Wednesday, April 27, 2011 1:35 PM
  • sorry it's organization_MSCRM database. According to event log you given, it seems the metadata of MSCRM corrupted. Hence, please check the attribute entry in metadata table. It should be 1 entry for each different attribute
    Wednesday, April 27, 2011 1:47 PM
  • Both queries returned 1 record.

    select * from MetadataSchema.Attribute
    where entityid in (select entityid from entity where logicalname in ('contact')) and logicalname = 'fullname'

    179AA4A5-6317-42A0-9B71-836591B963F1 00000000-0000-0000-00AA-11000000001E fullname FullName 320 1 NULL 608861BC-50A4-4C5F-A02C-21FE1943E2CF NULL 26 0 fullname 1 0 1 0 0 0 1543504257 NULL 0 NULL 0 NULL NULL 0 1 0x00000000000059E7 NULL C08AF115-5C5A-42E5-92D8-47A84867F419 NULL text 0 active none 160 NULL NULL NULL NULL NULL NULL NULL NULL 1 0 0 0 NULL NULL NULL

     

    select * from MetadataSchema.Attribute
    where entityid in (select entityid from entity where logicalname in ('lead')) and logicalname = 'fullname'

    2B978F49-1D57-4957-8E7C-0C597F8134A4 00000000-0000-0000-00AA-11000000001E fullname FullName 320 1 NULL DC6574CB-92CE-446C-A5D6-885A75107D52 NULL 34 0 fullname 1 0 1 0 0 0 1543504259 NULL 0 NULL 0 NULL NULL 0 1 0x0000000000006152 NULL A2D5EEBC-C349-421E-83A2-92EF37F2E063 NULL text 0 active none 160 NULL NULL NULL NULL NULL NULL NULL NULL 1 0 0 0 NULL NULL NULL


    Some day I'm going to be rich. Until then I'm busy...working...
    Wednesday, April 27, 2011 2:00 PM
  • In my case,  I was able to identify the query above returning 2 records instead of 1 and fixed it.

    Perhaps you have to import your customization into your new organization manually?

    Thursday, April 28, 2011 2:07 AM
  • I decided to upgrade to CRM 2011. I have other issues (import errors), but I will focus on the update.

    Thank you very much.


    Some day I'm going to be rich. Until then I'm busy...working...
    Thursday, April 28, 2011 7:23 AM