Dear all, we are collecting information nationally with the “Interviewer” and we have been facing an “attached exception” error in many devices (literal translation from Spanish). Could you guide us regarding the source of the error and how to solve it? since it has led to data loss.
Looking forward to your comments
Regards, Felipe J
One or more handlers failed when publishing 94 events. First event source id: b0b14ef8a51044ffbf29a6a0144a8615. (EventHandlerException: Exception has been thrown by the target of an invocation.) at WB.Core.Infrastructure.Implementation.EventDispatcher.NcqrCompatibleEventDispatcher.Publish(IEnumerable1 eventMessages) at WB.Core.Infrastructure.CommandBus.Implementation.CommandExecutor.ExecuteEventSourcedCommand(ICommand command, String origin, Type aggregateType, Guid aggregateId, IEnumerable
1 validators, IEnumerable1 preProcessors, IEnumerable
1 postProcessors, Action2 commandHandler, CancellationToken cancellationToken) at WB.Core.Infrastructure.CommandBus.Implementation.CommandExecutor.ExecuteCommand(ICommand command, String origin, CancellationToken cancellationToken, Guid aggregateId) at WB.Core.Infrastructure.CommandBus.Implementation.CommandService.<>c__DisplayClass14_0.b__1(ICommandExecutor ce) at WB.Core.BoundedContexts.Headquarters.Implementation.UnitOfWorkInScopeExecutor.Execute(Action
1 action, String workspace)
at WB.Core.GenericSubdomains.Portable.NamedLocker.RunWithLock(String name, Action body)
at WB.Core.Infrastructure.CommandBus.Implementation.CommandService.ExecuteImpl(ICommand command, String origin, CancellationToken cancellationToken)
at WB.Core.Infrastructure.CommandBus.Implementation.CommandService.Execute(ICommand command, String origin)
at WB.Core.BoundedContexts.Headquarters.Implementation.Synchronization.InterviewPackagesService.<>c__DisplayClass22_0.b__0(IServiceLocator serviceLocator)
at WB.Core.BoundedContexts.Headquarters.Implementation.UnitOfWorkInScopeExecutor.Execute(Action1 action, String workspace) at WB.Core.BoundedContexts.Headquarters.Implementation.Synchronization.InterviewPackagesService.ProcessPackage(InterviewPackage interview) EventHandlerException: Exception has been thrown by the target of an invocation. Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at WB.Core.Infrastructure.EventHandlers.AbstractCompositeFunctionalEventHandler
2.ApplyEventOnEntity(IPublishableEvent evt, TEntity currentState)
at WB.Core.Infrastructure.EventHandlers.AbstractFunctionalEventHandler2.Handle(IPublishableEvent evt, IReadSideStorage
1 storage)
at WB.Core.Infrastructure.EventHandlers.AbstractFunctionalEventHandler2.Handle(IEnumerable
1 publishableEvents)
at WB.Core.Infrastructure.Implementation.EventDispatcher.NcqrCompatibleEventDispatcher.Publish(IEnumerable1 eventMessages) Object reference not set to an instance of an object. at WB.Core.BoundedContexts.Headquarters.EventHandler.InterviewDynamicReportAnswersDenormalizer.Update(InterviewSummary state, IPublishedEvent
1 event)