Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Queue does not retrieve email messages from Exchange, Async error

Posted on by 417
Related to that problem there is now the issue with another queue. I followed the whole problem to the async log files. It is checking some active status and dying on that?
[2019-01-04 12:26:44.254] Process:CrmAsyncService |Organization:e1f18b90-ecb3-e211-b55e-000c29329206 |Thread:    7 |Category: EmailConnector |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: 6e3f4111-b852-e811-9662-00155d0f380f | EmailConnectorTraceHandler.EmailConnectorTraceFormat  ilOffset = 0x163
	at EmailConnectorTraceHandler.EmailConnectorTraceFormat(Guid orgId, Object mailbox, Guid asyncEventId, TraceCategory traceCategory, TraceLevel traceLevel, String data)  ilOffset = 0x163
	at EmailConnectorTraceHandler.EmailConnectorTraceFormat(Guid orgId, Object mailbox, Guid asyncEventId, TraceCategory traceCategory, TraceLevel traceLevel, String format, Object[] args)  ilOffset = 0x19
	at MailboxDataAccess.IsInactiveMailbox(Entity mailbox, Boolean isMaxPostponeTime, Boolean isOutgoingMailbox)  ilOffset = 0x1D
	at MailboxDataAccess.UpdateOutgoingMailbox(Mailbox mailbox, IAsyncEvent asyncEvent)  ilOffset = 0x0
	at OutgoingEmailProviderBase.UpdateMailboxes()  ilOffset = 0x42
	at OutgoingEmailProviderBase.Acknowledge()  ilOffset = 0xD
	at OutgoingActivityProviderBase`1.Run()  ilOffset = 0x5D
	at OutgoingActivityOperation.InternalExecute(ActivityAsyncEvent asyncEvent)  ilOffset = 0xE4
	at AsyncCallbackHandler`2.ResumeExecution(IAsyncEvent asyncEvent)  ilOffset = 0x5B
	at AsyncEventExecutionManager`2.ExecuteHandler(IAsyncEventHandlerFactory handlerFactory)  ilOffset = 0x63
	at PoolHandler.ProcessAsyncEvent(IAsyncEventExecutionManager asyncEventExecutionManager)  ilOffset = 0x22A
	at AsyncEventOperation.<.ctor>b__2(IServiceOperation operation)  ilOffset = 0x0
	at FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter)  ilOffset = 0x18
	at IsolatedOperation.Execute()  ilOffset = 0x27
	at MonitoredOperation.Execute()  ilOffset = 0xD
	at ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state)  ilOffset = 0x16
	at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x79
	at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x9
	at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  ilOffset = 0x35
	at ThreadPoolWorkQueue.Dispatch()  ilOffset = 0xA4
>Mailbox checking active status process encounter null value: Exception: Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
>   at System.ThrowHelper.ThrowKeyNotFoundException()
>   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
>   at Microsoft.Xrm.Sdk.AttributeCollection.get_Item(String attributeName)
>   at Microsoft.Crm.Asynchronous.EmailConnector.MailboxDataAccess.IsInactiveMailbox(Entity mailbox, Boolean isMaxPostponeTime, Boolean isOutgoingMailbox)
>.

*This post is locked for comments

  • bernhards Profile Picture
    bernhards 417 on at
    RE: Queue does not retrieve email messages from Exchange, Async error

    I think this fixed the main issue. The other issue was, that some plugin/steps did not work, even when they where enabled. After I figured that out I re-imported the same solution and that fixed this problem too. No idea why, and maybe it was caused by a restart we did with the server. But finally it works like it should. Thank you very much for your help!

  • bernhards Profile Picture
    bernhards 417 on at
    RE: Queue does not retrieve email messages from Exchange, Async error

    Hi Michael,

    thanks again for your help but it seems like that was only a part of the problem. After I did your steps it looked ok and the queue could retrieve the e-emails. But then, when I created the conversation rule (for the queue) the problem appeared again. The conversation rule is empty, with nothing inside (no checkboxes are checked) and just the name (no rule to create anything). This means for the conversation rule

    If active: Not even a test mail from the crm mailbox test is coming into the queue

    If inactive: The queue retrieves everything.

    How can this be?

  • bernhards Profile Picture
    bernhards 417 on at
    RE: Queue does not retrieve email messages from Exchange, Async error

    Thanks for your quick answer. I will test that out on monday when I am back in the office.

    Best regards,

    Bernhard

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Queue does not retrieve email messages from Exchange, Async error

    Each queue is connect to a mailbox. Open this mailbox and set the "Incoming Email", the "Outgoing Email" and "Appointments, Contacts, and Tasks" to NONE. Click Save. Then change the values back to your choice. Save again and click test & enable.

    There was a bug in CRM with the mailboxes.

    You can find some information here: dynamics.mittermair.pro/.../106

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans