Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

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

(0) ShareShare
ReportReport
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
    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
    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
    12,163 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
    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
    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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#2
Ramesh Kumar Profile Picture

Ramesh Kumar 42

#3
David Shaw_UK Profile Picture

David Shaw_UK 27

Featured topics

Product updates

Dynamics 365 release plans