2

When user try to save case in Dynamics CRM 2016 on premise, case remain unsaved without any error on UI, this is time specific and lasts for 30 minutes.

After investigation we found, there are CRM Async service maintenance jobs scheduled between this time.

And during this time we are getting deadlock on ALTER INDEX command in SQL server MSCRM org database.

Once the jobs execution completed, users can save the cases.

One of the Async service maintenance job is Index Management. Does this job lock ALTER INDEX when it runs? How can we find this?

Anurag Gawande
  • 116
  • 2
  • 10

3 Answers3

2

Edit: Codeplex repo in GitHub now, the below link is retired.

By default CRM will create six maintenance jobs which are scheduled to run daily. These jobs are executed by the Microsoft Dynamics CRM Asynchronous Processing Service (maintenance).  Depending on when the organization was created the maintenance jobs may run right when users are in the system. The CRM users may notice slowness or timeouts if the jobs are running while they are working in CRM. It is recommended to reschedule the jobs to a time when there will be a limited number of users in the system to avoid impact to the users.

Reference

Update: (Content from above MSDN blog)
CRM 2011 Maintenance Job Editor Tool

Applies to: CRM 2011, 2013, 2015, and 2016 OnPremise and Service Provider Edition - this does not apply to CRM Online.

  1. Download the CRM 2011 Maintenance Job Editor Tool http://crmjobeditor.codeplex.com/

  2. Copy extracted contents to the C:\Program Files\Microsoft Dynamics CRM\tools directory.

  3. Double Click the CRM2011JobEditor.exe to launch the tool.

  4. Select your organization.

  5. Each of the jobs will be staggered a few minutes so they do not execute at the same time. To ensure they remain staggered you can go through each Job and update the Starting At Time by changing the only the hour, switch between AM/PM and then click Update.

Alternatively, you may update the Starting At Time and choose the Apply Settings To All Jobs in the Organization option instead of updating each individual job.

enter image description here

2

There is a utility tool you can use to reschedule those jobs.

https://archive.codeplex.com/?p=crmjobeditor

Aside from the tool, I didn't find another way to look at the jobs. In SQL Server Agent, there is no trace of it.

Nick
  • 735
  • 5
  • 14
2

Adding helpful info to Arun's answer. The codeplex project is now archived and it doesn't come with a visible .exe file in the download anymore. Here is how you work with the package:

To get the EXE file from the archive:

  1. Open the archive page https://archive.codeplex.com/?p=crmjobeditor
  2. Click 'Download Archive'
  3. Unzip the ZIP file
  4. Go to the folder, Releases > 3
  5. Add .zip extension to the end of the file in this folder (It's a GUID).
  6. Unzip the new zip file.
  7. Inside the unzipped folder is the CRM2016JobEditor.exe
  8. Copy this file to the {Letter}:\Program Files\Microsoft Dynamics CRM\tools\ directory.
  9. Run the .exe
cmartin
  • 2,819
  • 1
  • 26
  • 31