web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Query execution time of xx.xx seconds exceeded the threshold of xx seconds

(0) ShareShare
ReportReport
Posted on by 110

How to get rid of these warning messages :"Query execution time of xx.xx seconds exceeded the threshold of xx seconds"

 

*This post is locked for comments

I have the same question (0)
  • Mohammad Atif Profile Picture
    on at

    There are few things you may check here as this might be the result of the overall performance in CRM database

    •Run the sp_who2 and check for any blocking sessions

    •If there are any blocking make sure that RCSI for the CRM database is set to 1

    •MDOP should not be set to default value if there is no reason of just keeping this value to Zero

    •Take any select query from the warning messages and then execute that query directly from the SSMS, and see how much time it is taking.

    •If the SQL query is taking long time check for the large size table in CRM database

    •If you are finding large size tables do cleanup if there is any KR article available to perform the cleanup on that table

    •Also check the CRM 2011 OOB maintenance jobs (specifically ReIndex All and Deletion Service Job) and make sure that last status is successful. You may use the CRM 2011 job editor tool which is available at crmjobeditor.codeplex.com

    •If you are using the SQL Standard maintenance jobs, please make sure that  SQL maintenance jobs are running fine

    •You might want to run the SQL Diag and then Analyze the Results with the help of the SQL nexus for any index recommendations for the large sized table

    •After Doing above optimization you might see these query execution but  with much less frequency and for that you may finally increase the OLEADB time out settings : support.microsoft.com/.../918609

    Thanks,

  • NVP Profile Picture
    150 on at

    Hi,

    CRM 2011 (Rollup 11) we are getting lots of Timeout warning messages. Some are even exceeding 100seconds. When i run the same query directly on SQL, it does not take more than a second.

    As suggested in the post by Mohammad Atif(earlier post), i now see that "Deletion Service"  has failed the last time it has run.

    Please would anyone suggest as how to proceed on from here.

    Note: These time out issues occur mainly for the CRM 2007 Webservice Calls. I have some ASP.NET webservices which have reference to the CRM 2007 webservice. Timeout issue occurs mainly in these calls.

    Many Thanks

  • Mohammad Atif Profile Picture
    on at

    you might want to look into the Async log after re-initiating the failed job in off business hours and see where the job is failing actually.

    Thanks,

    Mohammad

  • NVP Profile Picture
    150 on at

    Thank you for the reply Mohammad. This is the error i can see in the logs when i run the  "Deletion Service" job.

    "Caller <Service account> is not an owner for SubscriptionId 5faf7c12-78c4-de11-8a4c-00155d0f3502 "

    And this is the error displayed in the Job Editor : "Last job run failed with resultcode: 1"

  • Arturo B Profile Picture
    45 on at

    Was there ever any input for a solution provided for this scenario? I have exactly the same issue occurring.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans