Hi All,
There are some emails in our Dynamics 365 which is not sending out at the first attempt and stuck with status 'Pending Send'. When tried to resend the email, able to send it successfully. We are using Server Side Synchronization setup to send the emails.
Tried to check the event logs with respect to Asynchronous services and found the below error. Can anyone help to let us know what exactly is causing the problem?
This issue is happening intermittently and get solved when tried to resend.
Event Log:
The description for Event ID <EventId> from source MSCRMAsyncService cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
<ServerName>
<GUID>
JobId: <GUID> OrgId:<GUID> JobType:50; ErrorMessage:Microsoft.Crm.CrmArgumentNullException: mailboxAccessConfiguration ---> System.ArgumentNullException: Value cannot be null.
Parameter name: mailboxAccessConfiguration
--- End of inner exception stack trace ---
at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeSyncErrorLoggerProvider.GetExchangeSyncErrorLogger(IOrganizationService organizationService, IOrganizationSettings organizationSettings, IActivityProviderContext context, IMailboxAccessConfiguration mailboxAccessConfiguration)
at Microsoft.Crm.Asynchronous.EmailConnector.OutgoingEmailProviderBase..ctor(IEmailProviderContext context, IExchangeSyncErrorLoggerProvider exchangeSyncErrorLoggerProvider)
at Microsoft.Crm.Asynchronous.EmailConnector.OutgoingActivityProviderFactory.AddActivityToInvalidEmailProvider(Entity activity, Guid mailboxId)
at Microsoft.Crm.Asynchronous.EmailConnector.OutgoingActivityProviderFactory.ProcessEmail(Entity email)
at Microsoft.Crm.Asynchronous.EmailConnector.OutgoingActivityProviderFactory.GetProviders()
at Microsoft.Crm.Asynchronous.EmailConnector.OutgoingActivityOperation.InternalExecute(ActivityAsyncEvent asyncEvent)
at Microsoft.Crm.Asynchronous.AsyncEventHandlerCommand`1.Execute(IAsyncEvent asyncEvent)
at Microsoft.Crm.Asynchronous.AsyncEventExecutionManager`2.ExecuteCommand(IAsyncEventHandlerFactory handlerFactory)
at Microsoft.Crm.Asynchronous.AsyncEventExecutionManager`2.<>c__DisplayClass43_0.<ExecuteHandler>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.ExecuteRoot(ILogger logger, EventId eventId, RootExecutionContext rootContext, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.ExecuteRoot(ILogger logger, XrmRootExecutionContext rootContext, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Asynchronous.AsyncEventExecutionManager`2.ExecuteHandler(IAsyncEventHandlerFactory handlerFactory)
at Microsoft.Crm.Asynchronous.PoolHandler.ProcessAsyncEvent(IAsyncEventExecutionManager asyncEventExecutionManager) ErrorAction:Fail Exception:Unhandled Exception: Microsoft.Crm.CrmArgumentNullException: mailboxAccessConfiguration
at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeSyncErrorLoggerProvider.GetExchangeSyncErrorLogger(IOrganizationService organizationService, IOrganizationSettings organizationSettings, IActivityProviderContext context, IMailboxAccessConfiguration mailboxAccessConfiguration)
at Microsoft.Crm.Asynchronous.EmailConnector.OutgoingEmailProviderBase..ctor(IEmailProviderContext context, IExchangeSyncErrorLoggerProvider exchangeSyncErrorLoggerProvider)
at Microsoft.Crm.Asynchronous.EmailConnector.OutgoingActivityProviderFactory.AddActivityToInvalidEmailProvider(Entity activity, Guid mailboxId)
at Microsoft.Crm.Asynchronous.EmailConnector.OutgoingActivityProviderFactory.ProcessEmail(Entity email)
at Microsoft.Crm.Asynchronous.EmailConnector.OutgoingActivityProviderFactory.GetProviders()
at Microsoft.Crm.Asynchronous.EmailConnector.OutgoingActivityOperation.InternalExecute(ActivityAsyncEvent asyncEvent)
at Microsoft.Crm.Asynchronous.AsyncEventHandlerCommand`1.Execute(IAsyncEvent asyncEvent)
at Microsoft.Crm.Asynchronous.AsyncEventExecutionManager`2.ExecuteCommand(IAsyncEventHandlerFactory handlerFactory)
at Microsoft.Crm.Asynchronous.AsyncEventExecutionManager`2.<>c__DisplayClass43_0.<ExecuteHandler>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.ExecuteRoot(ILogger logger, EventId eventId, RootExecutionContext rootContext, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.ExecuteRoot(ILogger logger, XrmRootExecutionContext rootContext, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Asynchronous.AsyncEventExecutionManager`2.ExecuteHandler(IAsyncEventHandlerFactory handlerFactory)
at Microsoft.Crm.Asynchronous.PoolHandler.ProcessAsyncEvent(IAsyncEventExecutionManager asyncEventExecutionManager)
Inner Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: mailboxAccessConfiguration
Any help is greatly appreciated.
Thanks !!