Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

Unable to update an on prem Organisation from 9.0.x to 9.1.x

Posted on by 35


Having an issue updating one of our Organisations from 9.0.x to 9.1.x, All updated fine. apart from one, which gives following error in the log

2022-02-02 13:16:32.925|Verbose| End: Check if CRM Solutions are installed. Solutions found = msdynce_AppCommon, msdynce_CRMExtensions
2022-02-02 13:16:32.940| Error| Update Organization with Id=xxxxxxxxxx failed with Exception:
Microsoft.Crm.CrmException: Encountered non-terminal failures during DBUpdates. Failing actions are: CustomControlsCore, BaseCustomControlsCore, SolutionHistoryAPIs, CRMSettingsAPIs, DataModelingExtensions, ApiMessagesExtension, LocalizationExtensionApps, DataServicesExtensions, AppModuleExtensions, ODatav4DataProvider, WebResourcePages, msdyn_PowerConnectors, EnvironmentVariables, MicrosoftFlowExtensionsAnchor, PowerPlatformConnectionReferencesAnchor, msdyn_ContextualHelpAnchor, msdynce_CustomerCareIntelligenceBots_Anchor, msdynce_ClientUtility, msdynce_AppCommonAnchor, msdynce_Activities, msdynce_ServiceLevelAgreementAnchor, msdynce_KnowledgeManagementAnchor, ActivitiesInfra, ServerSideSync, CDSApiExtensions, CustomAPIExtensions, AsyncServiceExtensionsApp, SampleEditorCustomControl, msdyn_CustomControlsExtended, CRMDesigners, msdyn_AISolutionAnchor, msdynce_LeadManagementAnchor, msdynce_ProductManagementAnchor, Scheduling_Anchor, msdynce_MarketingAnchor, msdynce_ServiceAnchor, msdynce_SalesAnchor, msdynce_MarketingServiceAnchor, msdynce_MarketingSalesAnchor, msdynce_SalesServiceAnchor, msdynce_CRMExtensionsAnchor, msdyn_SalesIntegrationsAddOns, msdynce_SalesInsightsAnchor, ActivityFeedsCore, AppforOutlook, SkypeForBusiness, msdynce_OfficeProductivityAnchor
at Microsoft.Crm.Tools.Admin.OrganizationDBUpdateInstaller.ProcessFailedActions()

  • Sky_God Profile Picture
    Sky_God 24 on at
    RE: Unable to update an on prem Organisation from 9.0.x to 9.1.x

    Upon working through a D365 premise support ticket, it appears to be a product bug. 

    The account which is logged in and running the upgrade needs to be a Deployment Administrator, but as this was also the account which installed the CRM software in the first place, the installer did not correctly allocate this account into the PrivUserGroup in AD (one may need to do this manually and try again). 

    Here is the fuller message with the MS agent:

    "From the error message “Failing actions are: Scheduling_Anchor, msdynce_MarketingAnchor, msdynce_ServiceAnchor, msdynce_SalesAnchor” we see that the first component is Scheduling_Anchor, that is failing for the following:

    Failed to install Scheduling_AnchorException: Microsoft.Crm.PackageDeployment.PackageDeployerException: Package Scheduling_Anchor failed to install on attempt 0.

    System.AggregateException: One or more errors occurred. ---> System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: contextUserId=58f7af22-885a-e711-8045-005056ad0002 has correct privileges but allowImpersonationOfOrganizationSystemUser == false. Parameter'user'=1a7efc98-66c5-49c5-8579-2511f4915d1d, callerId=1a7efc98-66c5-49c5-8579-2511f4915d1d.

       at Microsoft.Crm.MultiTenantPackageDeployment.PdExecutor.Process(PackageDeploymentInputArgs input, JobOutput`1 output, CancellationToken ct)

       at System.Threading.Tasks.Task.Execute()

       --- End of inner exception stack trace ---

    ---> (Inner Exception #0) System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: contextUserId=58f7af22-885a-e711-8045-005056ad0002 has correct privileges but allowImpersonationOfOrganizationSystemUser == false. Parameter'user'=1a7efc98-66c5-49c5-8579-2511f4915d1d, callerId=1a7efc98-66c5-49c5-8579-2511f4915d1d. (Fault Detail is equal to Exception details:

    ErrorCode: 0x8004A110

    Message: contextUserId=58f7af22-885a-e711-8045-005056ad0002 has correct privileges but allowImpersonationOfOrganizationSystemUser == false. Parameter'user'=1a7efc98-66c5-49c5-8579-2511f4915d1d, callerId=1a7efc98-66c5-49c5-8579-2511f4915d1d.

    TimeStamp: 2022-08-03T10:07:58.8092769Z

     

    This is because the account that is running the import is not part of the PrivUserGroup. Please, could you try to add this account there and retry? The other components could be related to some relations between the first one so let’s fix first this one and see if the others are still failing."

     

    You can follow the steps in Add a new Deployment Administrator | Microsoft Docs to add the user to PrivUserGroup."

  • suresh p Profile Picture
    suresh p 1,320 on at
    RE: Unable to update an on prem Organisation from 9.0.x to 9.1.x

    Hi jonessj,

    Did you get any resolution for this case? I am also facing same issue. Please help me.

    Thanks,

    Suresh.

  • Suggested answer
    jonessj Profile Picture
    jonessj 35 on at
    RE: Unable to update an on prem Organisation from 9.0.x to 9.1.x

    I think I've found the issue, looking up through the logs it states the/my Deployment account is missing some privileges.  Just checked and my User account in this Org is not a Sys Admin.

    However I can't just add in the role as I now get a plugin error when doing so;

    <Message>Assembly content(Microsoft.Dynamics.Marketing.Plugins, Version=9.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) does not match the expected assembly identity (Microsoft.Dynamics.Marketing.Plugins, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35).</Message>

    So will have to wait until Monday when the other Sys admin/Deployment guy comes in and get him to "update" the org from the Deployment Manager  - fingers crossed.

  • edmunch Profile Picture
    edmunch on at
    RE: Unable to update an on prem Organisation from 9.0.x to 9.1.x

    I have seen several resolutions to this issue from not being in the correct 'privusergroup', entities needing to have the offline flag enabled by setting the IsOfflineInMobileClient to 1, and upgrading to v9.1.5.  Do you have any further details in the 'crmdmsnapin' logs aside from what you provided?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans