WorkFlows Failing After Upgrading CRM to Dynamics365 (On-Premise)

Issue

After Upgrading Dynamics CRM 2016 on prem to Dynamics365 on Prem you may notice workflows may suddenly stop completing with an error: Error Attenetion Needed if you look in details on the workflow/Backend server event viewer you will see the below error message.

Out of memory issues After Upgrade

Unhandled Exception: System.TypeInitializationException: The type initializer for 'Microsoft.Crm.ErrorCodes' threw an exception.    at Microsoft.Crm.ErrorCodes.Out of memory issue in Dynamics365GetErrorType(Int32 errorCode)    at Microsoft.Crm.Admin.AdminService.CrmDatacenterService.ClassifyErrorCode(Int32 errorCode)    at Microsoft.Crm.Asynchronous.JobResultCodeServiceLevelAgreementResultStrategy.MarkFailedResult(IGenericHandlerResult asyncResult, ITelemetryOperation operation)    at Microsoft.Crm.Asynchronous.AsyncEventExecutionManager`2.ExecuteHandler(IAsyncEventHandlerFactory handlerFactory)    at Microsoft.Crm.Asynchronous.PoolHandler.ProcessAsyncEvent(IAsyncEventExecutionManager asyncEventExecutionManager) Inner Exception: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.    at Microsoft.Crm.ErrorCodes..cctor()

Cause

This issue is caused by the CRM Infrastructure not having the recommended RAM as defined in this technet article (https://technet.microsoft.com/en-us/library/hh699840.aspx)

Solution

Increase RAM on all the Server with your CRM seating to the recommended 8GB you can go as much as 16GB of RAM l would recoomend you also increase your storage space to have a larger paging file.

Comments

Popular posts from this blog

Dynamics 365 (on-premises), version 8.2 upgrade/import to v9.0.2 Failure

Dynamics 365 - Dashboards – You do not have enough privileges to access the Microsoft Dynamics CRM object or perform the requested operation.

CRM 2016 integration with SharePoint 2016 On Premise (401) Unauthorized Error