WorkFlows Failing After Upgrading CRM to Dynamics365 (On-Premise)
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()
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)
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.