Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Upgrade CRM 8.0 to 8.1 >> Microsoft.Xrm.Sdk.OrganizationServiceFault: Object reference not set to an instance of an object.

Posted on by 15

I'm Trying to Upgrade (update) my Organization from 8.0.0.1088 to 8.1.0.359 (on prime) on a new server, I face the below issue 

10:57:49| Error| Installer Complete: OrganizationDatabaseHotFixer - Error encountered
10:57:49| Error| Exception occured during Microsoft.Crm.Tools.Admin.OrganizationDatabaseHotFixer: Error.ActionFailed Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction
InnerException:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Object reference not set to an instance of an object.
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Create(Entity entity, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, Dictionary`2 optionalParameters)
at Microsoft.Crm.Extensibility.InprocessServiceProxy.CreateCore(Entity entity)
at Microsoft.Crm.SE.DllMethodActions.AddMissingKnowledgeArticlePostConfigRowsForActivityFeeds.Execute()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
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(Guid organizationId, Nullable`1 operationType)
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.Setup.Database.DatabaseInstaller.InstallUpdate(String configurationFilePath, Boolean upgradeDatabase)
at Microsoft.Crm.Setup.Common.Update.DBUpdateDatabaseInstaller.ApplyDBUpdates(Guid orgId, Nullable`1 operationType)
at Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.ApplyDBUpdatesInternal(Guid orgId, String orgUniqueName, String releaseFilePath, Boolean ignoreErrors, OrganizationOperationType operationType)
at Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.ApplyDBUpdates(Guid orgId, String orgUniqueName, OrganizationOperationType operationType)
at Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Shared.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
InnerException:
System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Object reference not set to an instance of an object. (Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault).

10:57:49| Info| Setting organization state. New state = Failed
10:57:49| Error| Update Organization with Id=0fa1caef-70e1-e211-a023-00155d001a1d failed with Exception:
System.Exception: Error.ActionFailed Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Object reference not set to an instance of an object.
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Create(Entity entity, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, Dictionary`2 optionalParameters)
at Microsoft.Crm.Extensibility.InprocessServiceProxy.CreateCore(Entity entity)
at Microsoft.Crm.SE.DllMethodActions.AddMissingKnowledgeArticlePostConfigRowsForActivityFeeds.Execute()

Any advice?

  • PhilipK Profile Picture
    PhilipK 602 on at
    RE: Upgrade CRM 8.0 to 8.1 >> Microsoft.Xrm.Sdk.OrganizationServiceFault: Object reference not set to an instance of an object.

    I'm glad to hear that the issue was resolved!

    Best regards.

    Philip

  • Suggested answer
    M THarwat Profile Picture
    M THarwat 15 on at
    RE: Upgrade CRM 8.0 to 8.1 >> Microsoft.Xrm.Sdk.OrganizationServiceFault: Object reference not set to an instance of an object.

    Hi Philip,

    Thanks for your quick response, I found the below error in the trace log

    [2022-01-04 20:42:34.137] Process:  mmc |Organization:0fa1caef-70e1-e211-a023-00155d001a1d |Thread:   55(Async/Worker-thread.) |Category: Platform.Sdk |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | VersionedPluginProxyStepBase.Execute  ilOffset = 0x65

    >Web Service Plug-in failed in SdkMessageProcessingStepId: {53F0073B-278D-EA11-A2C6-005056946E9B}; EntityName: msdyn_postconfig; Stage: 20; MessageName: Create; AssemblyName: Sce.Crm.Server.Plugins.CounterPlugin, Sce.Crm.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1cf6efbc81435211; ClassName: Sce.Crm.Server.Plugins.CounterPlugin; Exception: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.  at Sce.Crm.Server.Plugins.SqlCounterGenerator.get_ConnectionString()
      at Sce.Crm.Server.Plugins.SqlCounterGenerator.GetNextCounters(String entityName)
      at Sce.Crm.Server.Plugins.CounterProvider.Augment(String entityName, Entity entity)
      at Sce.Crm.Server.Plugins.CounterPluginContext.Augment()
      at Sce.Crm.Server.Plugins.CounterPlugin.ExecutePreOperationCreate(CounterPluginContext context)
      at Sce.Crm.Server.Plugins.Plugin`1.Execute(IServiceProvider serviceProvider)
      at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
      at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

    I did unregister to the step with mentioned GUID, it works fine after that.

  • PhilipK Profile Picture
    PhilipK 602 on at
    RE: Upgrade CRM 8.0 to 8.1 >> Microsoft.Xrm.Sdk.OrganizationServiceFault: Object reference not set to an instance of an object.

    Hi Mohamed.

    As this just contains the conclusion of the error from "crmsnapin" log I would if I where you search backwards in this log for the individual action performed on entity record(s) that updater fails on in relation to "AddMissingKnowledgeArticlePostConfigRowsForActivityFeeds".

    Best regards.

    Philip

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans