After upgrading from Dynamics 365 CRM On-premise V 9.0.51.06 To V 9.1.26.23 we started getting a warning in the event log as shown below. Everything seems to be working as expected but wondering how we can stop this warning:
Exception information:
Exception type: CrmException
Exception message: The current organization id could not be determined.
at Microsoft.Crm.Application.Security.UserInformationIdentity.get_OrganizationId()
at Microsoft.Crm.CrmCache`1.InternalAddEntry(String cacheKey, Object value, String[] dependencyKeys, IOrganizationContext context)
at Microsoft.Crm.CrmCache`1.AddEntryNoLock(String key, TValue value, String[] dependencyKeys, IOrganizationContext context)
at Microsoft.Crm.Caching.BasicCrmCache`2.AddEntityFromLookupInternal(String key, TValue value, IOrganizationContext context)
at Microsoft.Crm.Caching.BasicCrmCache`2.AddEntryFromLookupCallback(String key, TValue value, IOrganizationContext context, Object parameter)
at Microsoft.Crm.CrmCache`1.AddEntry(String key, TValue value, IOrganizationContext context, AddEntryCallback`1 callback, Object callbackParameter)
at Microsoft.Crm.Caching.BasicCrmCache`2.AddEntryFromLookup(String key, TValue value, IOrganizationContext context)
at Microsoft.Crm.Caching.BasicCrmCache`2.LookupEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.Application.Themes.Theme.get_Current()
at ASP._common_styles_theme_css_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)