Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

SQL Server timeout error

(1) ShareShare
ReportReport
Posted on by 4
Hi All,
 
Would really appreciate any help with this.
 
Everyday (same time of day) we have problems with attaching files to emails, sending emails and incoming emails (into CRM) do not pull through attachments.
 
In our D365 backend server I see warning events each time this happens:
 
Query execution time of 30.0 seconds exceeded the threshold of 10 seconds. Thread: 12; Database: D365Live_MSCRM; Server:SQL19\D365; Query: insert into [Attachment]([Body], [FileName], [MimeType], [FileSize], [AttachmentId]) values (@Body0, @FileName0, @MimeType0, @FileSize0, @AttachmentId0).
 
I have checked the following:
 
- Restricted file types for attachments in CRM (nothing unusual)
- File size limit
- Recurring system jobs (none at the time of day this issue occurs)
- CPU and RAM on D365 front end and backend servers, as well as our SQL server. These have all been increased which hasn't made a difference
- Number of system jobs completed in D365 at the time of day this occurs, compared with the rest of the day
 
This is the error we get in CRM:
 
 
We're using version 9.1 on-premises. We upgraded from version 8.2 recently, and this problem has occurred ever since.
 
Any help or advice would be greatly appreciated.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans