web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Syed Aqib Raza Profile Picture

Syed Aqib Raza 25

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 23 Most Valuable Professional

#3
Ayesha Wajahat Profile Picture

Ayesha Wajahat 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans