Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

ErrorMessage:Microsoft.Crm.CrmArgumentNullException: mailboxAccessConfiguration - Email not sent out

Posted on by 30

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 !!

  • Suggested answer
    Alexey Profile Picture
    Alexey 15 on at
    RE: ErrorMessage:Microsoft.Crm.CrmArgumentNullException: mailboxAccessConfiguration - Email not sent out

    Resolved!!! We need to put a larger value in the maxconcurrentconnections field in the email profile settings. I set it to 100 and the problem went away

  • Alexey Profile Picture
    Alexey 15 on at
    RE: ErrorMessage:Microsoft.Crm.CrmArgumentNullException: mailboxAccessConfiguration - Email not sent out

    Hi everyone,
    We faced a similar problem. Is there a solution?

    Host {HOSTNAME}: A Microsoft Dynamics CRM Asynchronous Processing Service operation of type {GUID} has failed
    Organization ID: 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


    Organization Unique Name: %4
    Error code: %5
    Error description: %6

  • Joe Woltering Profile Picture
    Joe Woltering 12,159 on at
    RE: ErrorMessage:Microsoft.Crm.CrmArgumentNullException: mailboxAccessConfiguration - Email not sent out

    Did you ever resolve this? I am getting the same error in the event log and my outgoing mail status on all of mailboxes is failing.

  • SrinivasKamutam Profile Picture
    SrinivasKamutam 30 on at
    RE: ErrorMessage:Microsoft.Crm.CrmArgumentNullException: mailboxAccessConfiguration - Email not sent out

    Hi Leah Ju,

    Thanks for your response.

    If the email is not sent always, we can suspect all the possible causes mentioned. But the challenging part here is the email can be sent successfully when tried to resend with same sender and recipients. Email with same recipients and sender works all the time and this is one of the rare scenario happening and not sure what is the actual cause of the problem.

    Thanks!!

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: ErrorMessage:Microsoft.Crm.CrmArgumentNullException: mailboxAccessConfiguration - Email not sent out

    Hi SrinivasKamutam,

    You can refer following link:

    https://docs.microsoft.com/en-us/power-platform/admin/troubleshooting-monitoring-server-side-synchronization#email-message-has-pending-send-status

    https://heidster12.wordpress.com/2016/02/01/crm-email-notifications-pending-send-issue/

    if all mentioned above can’t solve issue, you can remove all the settings, set everything all over to test again.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans