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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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.
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 156

#2
ManoVerse Profile Picture

ManoVerse 153 Super User 2026 Season 1

#3
Zhilan Profile Picture

Zhilan 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans