Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2021 Release Wave 1Discover the latest updates and new features to Dynamics 365 planned April 2021 through September 2021.
Release overview guides and videos Release Plan | Preview 2021 Release Wave 1 Timeline
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
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?
You can check this for troubleshooting: www.powerobjects.com/.../
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
JOIN QueueBase QB ON Apa.PartyId = QB.QueueId
GROUP BY APa.PartyId, QB.Name, QB.EmailAddress
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.
Business Applications communities