web
You’re offline. This is a read only version of the page.
close
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 !!

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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.

  • SrinivasKamutam Profile Picture
    30 on at

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

  • Joe Woltering Profile Picture
    12,163 on at

    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.

  • Alexey Profile Picture
    15 on at

    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

  • Suggested answer
    Alexey Profile Picture
    15 on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 53 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans