Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Email in "Pending Send" then "Failed" in MS CRM 2015 on premise Randomly

Posted on by 10

Hi everyone,

We are having a MS CRM 2015 on premise version. We are facing a random problem that some of the emails are getting failed.

The system tries to send the email for a "no of attempts = 10+" and then the email gets into "Failed" state.

Can anyone help me find out why this is happening?

  • Suggested answer
    Hector H Profile Picture
    Hector H 197 on at
    RE: Email in "Pending Send" then "Failed" in MS CRM 2015 on premise Randomly

    Hello Allen,

    I'm assuming you are using email router, in case not, please clarify.

    Try to verify how many emails are pending to send

    SQL for users

    SELECT APa.PartyId AS Sender, Sb.FullName, Sb.DomainName, COUNT(*) AS #_Pending_Emails

    FROM ActivityPointerBase APo, ActivityPartyBase APa (NOLOCK)

    JOIN SystemUserBase SB ON Apa.PartyId = SB.SystemUserId

    WHERE APo.StatusCode = '6' AND

    APa.ParticipationTypeMask = '1' AND

    APo.ActivityId = APa.ActivityId

    GROUP BY APa.PartyId, Sb.FullName, Sb.DomainName 

    Order BY #_Pending_Emails desc

    ===============

    SQL for Queues:

    SELECT APa.PartyId AS Sender, QB.Name, QB.EmailAddress, COUNT(*) AS #_Pending_Emails

    FROM ActivityPointerBase APo, ActivityPartyBase APa (NOLOCK)

    JOIN QueueBase QB ON Apa.PartyId = QB.QueueId

    WHERE APo.StatusCode = '6' AND

    APa.ParticipationTypeMask = '1' AND

    APo.ActivityId = APa.ActivityId

    GROUP BY APa.PartyId, QB.Name, QB.EmailAddress 

    Order BY #_Pending_Emails desc

    If you are having more than 100, probably you are having performance issue and you need to increase Email router capacity 

    Try the following suggestions

    Check/adjust parameters on the config file Microsoft.Crm.Tools.EmailAgent.xml:

     

      â—‹ MaxThreadExecution = 1200000 (20 minutes) or 1800000 (30 minutes)

      â—‹ BatchSize = number of emails message collected per cycle (by default are 5, increase 50 or higher) 

      â—‹ RequestBatchSize = number of users/queues collected per cycle (try to increase)

    Try to clean all emails with pending send status, some times you need to disable all of them and enable one by one to provide piority for one mailbox.

    I hope this helps you.

  • erhan.keskin Profile Picture
    erhan.keskin 2,247 on at
    RE: Email in "Pending Send" then "Failed" in MS CRM 2015 on premise Randomly

    Hi,

    You can check this for troubleshooting: www.powerobjects.com/.../

    Regards,

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!

Community AMA December 12th

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans