Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error Opening Rollup Formula

(0) ShareShare
ReportReport
Posted on by

I am unable able to open the formula on any rollup field, new or existing. It has been awhile since we last used one and have multiple changes since then so I am not sure what could be causing this and I am having a hard time figuring it out. All I am seeing is an unhandled exception error. I have the error from the server trace and also the event log.

I saw that online had a similar issue but it was patched and we are On Prem 8.2.2.112. If anyone has any advice it would be helpful and really appreciated.

Event Log

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 10/24/2018 9:57:24 AM
Event time (UTC): 10/24/2018 3:57:24 PM
Event ID: e6bde1ee1f444baea1db2b422a73e1a3
Event sequence: 183
Event occurrence: 2
Event detail code: 0
Application information:
Application domain: <application domain>
Trust level: Full
Application Virtual Path: /
Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
Machine name: <our server name>
Process information:
Process ID: 1536
Process name: w3wp.exe
Account name: <service user account>
Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.
at Microsoft.Crm.Application.InlineEdit.JsonWrapperFactory.CreateForEnumAttribute(EnumAttributeMetadata metadata)
at Microsoft.Crm.Application.InlineEdit.JsonWrapperFactory.Create(AttributeMetadata attributeMetadata, String entityLogicalName)
at Microsoft.Crm.Web.Tools.SystemCustomization.BusinessRules.OneToManyRelationBuilder.AddFirstValidAttributeMetadata(CommonRuleAdapter rollupFieldAdapter, EntityMetadata referencingEntity, List`1 attributeList)
at Microsoft.Crm.Web.Tools.SystemCustomization.BusinessRules.OneToManyRelationBuilder.GetRelationshipEntityMetadata(CommonRuleAdapter rollupFieldAdapter, RelatedAttributeVisitor visitor, EntityMetadata referencingEntity)
at Microsoft.Crm.Web.Tools.SystemCustomization.BusinessRules.OneToManyRelationBuilder.Build(Int32 entityTypeCode, WorkflowStep step)
at Microsoft.Crm.Web.Tools.SystemCustomization.RollupFields.RollupFieldEditorClientDataBuilder.BuildRollupFieldEditorData(Int32 entityTypeCode, Guid rollupFieldId, WorkflowStep step)
at Microsoft.Crm.Web.Tools.SystemCustomization.RollupFields.Views.ManageRollupFieldView.BuildEditorClientData()
at Microsoft.Crm.Web.Tools.SystemCustomization.Common.ManageRulesView.InitializeAppPageHeader()
at Microsoft.Crm.Web.Tools.SystemCustomization.Common.ManageRulesView.Initialize()
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
at Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e)
at Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
Request URL: <our crm url>
Request path: /<org name>/tools/systemcustomization/RollupFields/manageRollupFields.aspx
User host address: 192.168.101.230
User: <my user account>
Is authenticated: True
Authentication Type: Federation
Thread account name: <service user account>
Thread information:
Thread ID: 23
Thread account name: <service user account>
Is impersonating: False
Stack trace: at Microsoft.Crm.Application.InlineEdit.JsonWrapperFactory.CreateForEnumAttribute(EnumAttributeMetadata metadata)
at Microsoft.Crm.Application.InlineEdit.JsonWrapperFactory.Create(AttributeMetadata attributeMetadata, String entityLogicalName)
at Microsoft.Crm.Web.Tools.SystemCustomization.BusinessRules.OneToManyRelationBuilder.AddFirstValidAttributeMetadata(CommonRuleAdapter rollupFieldAdapter, EntityMetadata referencingEntity, List`1 attributeList)
at Microsoft.Crm.Web.Tools.SystemCustomization.BusinessRules.OneToManyRelationBuilder.GetRelationshipEntityMetadata(CommonRuleAdapter rollupFieldAdapter, RelatedAttributeVisitor visitor, EntityMetadata referencingEntity)
at Microsoft.Crm.Web.Tools.SystemCustomization.BusinessRules.OneToManyRelationBuilder.Build(Int32 entityTypeCode, WorkflowStep step)
at Microsoft.Crm.Web.Tools.SystemCustomization.RollupFields.RollupFieldEditorClientDataBuilder.BuildRollupFieldEditorData(Int32 entityTypeCode, Guid rollupFieldId, WorkflowStep step)
at Microsoft.Crm.Web.Tools.SystemCustomization.RollupFields.Views.ManageRollupFieldView.BuildEditorClientData()
at Microsoft.Crm.Web.Tools.SystemCustomization.Common.ManageRulesView.InitializeAppPageHeader()
at Microsoft.Crm.Web.Tools.SystemCustomization.Common.ManageRulesView.Initialize()
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
at Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e)
at Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Server Trace Error

>Request <our url for rollup request> failed with exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.>Request <our url for rollup request> failed with exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.   at Microsoft.Crm.Application.InlineEdit.JsonWrapperFactory.CreateForEnumAttribute(EnumAttributeMetadata metadata)   at Microsoft.Crm.Application.InlineEdit.JsonWrapperFactory.Create(AttributeMetadata attributeMetadata, String entityLogicalName)   at Microsoft.Crm.Web.Tools.SystemCustomization.BusinessRules.OneToManyRelationBuilder.AddFirstValidAttributeMetadata(CommonRuleAdapter rollupFieldAdapter, EntityMetadata referencingEntity, List`1 attributeList)   at Microsoft.Crm.Web.Tools.SystemCustomization.BusinessRules.OneToManyRelationBuilder.GetRelationshipEntityMetadata(CommonRuleAdapter rollupFieldAdapter, RelatedAttributeVisitor visitor, EntityMetadata referencingEntity)   at Microsoft.Crm.Web.Tools.SystemCustomization.BusinessRules.OneToManyRelationBuilder.Build(Int32 entityTypeCode, WorkflowStep step)   at Microsoft.Crm.Web.Tools.SystemCustomization.RollupFields.RollupFieldEditorClientDataBuilder.BuildRollupFieldEditorData(Int32 entityTypeCode, Guid rollupFieldId, WorkflowStep step)   at Microsoft.Crm.Web.Tools.SystemCustomization.RollupFields.Views.ManageRollupFieldView.BuildEditorClientData()   at Microsoft.Crm.Web.Tools.SystemCustomization.Common.ManageRulesView.InitializeAppPageHeader()   at Microsoft.Crm.Web.Tools.SystemCustomization.Common.ManageRulesView.Initialize()   at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)   at Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e)   at Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e)   at System.Web.UI.Control.PreRenderRecursiveInternal()   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   at System.Web.UI.Page.HandleError(Exception e)   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   at System.Web.UI.Page.ProcessRequest()   at System.Web.UI.Page.ProcessRequest(HttpContext context)   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)[2018-10-24 09:57:24.355] Process: w3wp |Organization:17975a48-c0bd-e711-90f4-005056894711 |Thread:   23 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: fa5866f1-38aa-488f-8ecb-b909d134fd7d |ActivityId: fa5866f1-38aa-488f-8ecb-b909d134fd7d | MainApplication.Application_Error  ilOffset = 0xB5 at MainApplication.Application_Error(Object sender, EventArgs eventArguments)  ilOffset = 0xB5 at HttpApplication.RaiseOnError()  ilOffset = 0x0 at HttpApplication.RecordError(Exception error)  ilOffset = 0x41 at PipelineStepManager.ResumeSteps(Exception error)  ilOffset = 0xEE at HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)  ilOffset = 0x31 at HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)  ilOffset = 0xB0 at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  ilOffset = 0x131 at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  ilOffset = 0x0 at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)  ilOffset = 0xFFFFFFFF at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)  ilOffset = 0xFFFFFFFF at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  ilOffset = 0x1E7 at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  ilOffset = 0x0>MSCRM Error Report:--------------------------------------------------------------------------------------------------------Error: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Error Message: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Error Details: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Source File: Not available
Line Number: Not available
Request URL: <our url for rollup request>
Stack Trace Info: [NullReferenceException: Object reference not set to an instance of an object.]   at Microsoft.Crm.Application.InlineEdit.JsonWrapperFactory.CreateForEnumAttribute(EnumAttributeMetadata metadata)   at Microsoft.Crm.Application.InlineEdit.JsonWrapperFactory.Create(AttributeMetadata attributeMetadata, String entityLogicalName)   at Microsoft.Crm.Web.Tools.SystemCustomization.BusinessRules.OneToManyRelationBuilder.AddFirstValidAttributeMetadata(CommonRuleAdapter rollupFieldAdapter, EntityMetadata referencingEntity, List`1 attributeList)   at Microsoft.Crm.Web.Tools.SystemCustomization.BusinessRules.OneToManyRelationBuilder.GetRelationshipEntityMetadata(CommonRuleAdapter rollupFieldAdapter, RelatedAttributeVisitor visitor, EntityMetadata referencingEntity)   at Microsoft.Crm.Web.Tools.SystemCustomization.BusinessRules.OneToManyRelationBuilder.Build(Int32 entityTypeCode, WorkflowStep step)   at Microsoft.Crm.Web.Tools.SystemCustomization.RollupFields.RollupFieldEditorClientDataBuilder.BuildRollupFieldEditorData(Int32 entityTypeCode, Guid rollupFieldId, WorkflowStep step)   at Microsoft.Crm.Web.Tools.SystemCustomization.RollupFields.Views.ManageRollupFieldView.BuildEditorClientData()   at Microsoft.Crm.Web.Tools.SystemCustomization.Common.ManageRulesView.InitializeAppPageHeader()   at Microsoft.Crm.Web.Tools.SystemCustomization.Common.ManageRulesView.Initialize()   at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)   at Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e)   at Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e)   at System.Web.UI.Control.PreRenderRecursiveInternal()   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
[HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]   at System.Web.UI.Page.HandleError(Exception e)   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   at System.Web.UI.Page.ProcessRequest()   at System.Web.UI.Page.ProcessRequest(HttpContext context)   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

[2018-10-24 09:57:24.355] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   23 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: fa5866f1-38aa-488f-8ecb-b909d134fd7d |ActivityId: fa5866f1-38aa-488f-8ecb-b909d134fd7d | FaultHelper.ConvertToFault  ilOffset = 0x0 at FaultHelper.ConvertToFault(Exception exception)  ilOffset = 0x0 at ErrorInformation..ctor(Exception exception, Uri requestUrl, Boolean logError, IOrganizationContext context)  ilOffset = 0x238 at MainApplication.Application_Error(Object sender, EventArgs eventArguments)  ilOffset = 0xB5 at HttpApplication.RaiseOnError()  ilOffset = 0x0 at HttpApplication.RecordError(Exception error)  ilOffset = 0x41 at PipelineStepManager.ResumeSteps(Exception error)  ilOffset = 0xEE at HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)  ilOffset = 0x31 at HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)  ilOffset = 0xB0 at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  ilOffset = 0x131 at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  ilOffset = 0x0 at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)  ilOffset = 0xFFFFFFFF at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)  ilOffset = 0xFFFFFFFF at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  ilOffset = 0x1E7 at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  ilOffset = 0x0

*This post is locked for comments

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,492 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans