delegateas / XrmMockup

Engine which simulates your exact Dynamics 365/CRM instance locally including all of it's logic!
Other
71 stars 29 forks source link

When exception thrown within workflow execution, no info available in which workflow/step that occurred. #223

Open janis-veinbergs opened 1 year ago

janis-veinbergs commented 1 year ago

Ideally logging which workflow has been started and what steps have been taken to trace down at which step it occurred.

Current stacktrace doesn't help:

at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at WorkflowExecuter.CallCodeActivity.Execute(Dictionary`2& variables, TimeSpan timeOffset, IOrganizationService orgService, IOrganizationServiceFactory factory, ITracingService trace)
   at WorkflowExecuter.ActivityList.Execute(Int32 loopStart, Dictionary`2& variables, TimeSpan timeOffset, IOrganizationService orgService, IOrganizationServiceFactory factory, ITracingService trace)
   at WorkflowExecuter.ActivityList.Execute(Dictionary`2& variables, TimeSpan timeOffset, IOrganizationService orgService, IOrganizationServiceFactory factory, ITracingService trace)
   at WorkflowExecuter.WorkflowTree.Execute(Entity primaryEntity, TimeSpan timeOffset, IOrganizationService orgService, IOrganizationServiceFactory factory, ITracingService trace)
   at DG.Tools.XrmMockup.WorkflowManager.ExecuteWorkflow(WorkflowTree workflow, Entity primaryEntity, PluginContext pluginContext, Core core)
   at DG.Tools.XrmMockup.WorkflowManager.TriggerAsync(Core core)
   at DG.Tools.XrmMockup.Core.Execute(OrganizationRequest request, EntityReference userRef, PluginContext parentPluginContext)
   at DG.Tools.XrmMockup.MockupService.SendRequest[T](OrganizationRequest request)
   at DG.Tools.XrmMockup.MockupService.Create(Entity entity)