Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Dynamics CRM 365 On-Premise Troubleshooting Sporadic Lockups and Errors until IIS is reset

Posted on by Microsoft Employee

Hello everyone,

I have a Dynamics CRM 365 on-premise environment that is used daily by over 300 individuals.

Sporadically, about once a week, the entire CRM environment will become slow, sluggish, and start throwing errors.

Generally, when this starts to happen, I'll perform a reset on IIS and after about 5 minutes everything will come up and go back to normal for another week or so until it happens again (not at the same time of day or even the same day of the week).

To help provide some more details about this situation, the last time it occurred, I have a WCF Service that creates records in the CRM and it started throwing exceptions over and over again with the following:

System.ServiceModel.CommunicationObjectFaultedException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #E662A8E9

I then went into the CRM and tried to create an opportunity (unrelated to what the WCF service is doing). The first time I tried to save an opportunity record I received the following error from a plugin that has been running on opportunity create for several years without problems:

The plug-in execution failed because no Sandbox Worker processes are currently available. Please try again.

I then went back and tried to create the opportunity a second time and it worked.

When the system starts 'acting up' I've seen these errors everywhere from account plugins, incident plugins, opportunity plugins, and outside external applications trying to connect to the CRM.

Basically, I was wondering if anyone would have any troubleshooting techniques or tips they would be so kind to offer me in regards to how I can track down what is happening... Maybe something I can run or monitor for example to find the culprit?

 

Thanks again everyone for all of the help.

 

 

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics CRM 365 On-Premise Troubleshooting Sporadic Lockups and Errors until IIS is reset

    Arun,

    Thank you for taking the time to get back to me on this one.

    I took your advice and looked through the application logs of the event viewer on our server and there were a lot of invalid trace directory and errors regarding the termination of sandbox worker processes.

    We did perform an upgrade of our environment from CRM 2015 to 365 and if my memory serves me correctly this is around when this all started happening.

    I found this article blog.qualtechsoftware.com/high-number-of-sandbox-worker-processes-dynamics-365 that goes into detail regarding a large number of sandbox work processes and there potentially being an issue with the service itself.

    I'll investigate this further and see where this takes me.

    Thanks again.

  • Verified answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: Dynamics CRM 365 On-Premise Troubleshooting Sporadic Lockups and Errors until IIS is reset

    Sometimes AppPool recycle need to be scheduled in off-business hours periodically to solve such mystery issues.

    Memory leak or any setup issues could be the reason, are you seeing anything odd in trace or event viewer logs?

    MS support can help you to run diagnostic tools to see the bottlenecks.

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans