Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

SQL time out exceptions seen during the Data import. (CRM 2016 On-Premise)

Posted on by 80

Hi Experts,

What are the best practices to prevent the SQL time out exceptions seen during the Data import ?

In CRM 2016 data import file limit extended to 32MB, in my case sometime data import stuck for a long time even keeping file size under the limit. So how can we handle this while working on a large project, where we cann't ask another user to keep there activity (i.e. data import/export/console app run etc) on hold.

Is any monitor tool or SQL Script available to monitor this. How you people deal with the same situations while working on nay Large Project, please share your experience.

Following is the exception details :

Message : Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

Exception : 

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: SQL timeout expired.Detail: 
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ErrorCode>-2147204783</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
  <Message>SQL timeout expired.</Message>
  <Timestamp>2017-09-30T03:59:56.2170386Z</Timestamp>
  <InnerFault>
    <ErrorCode>-2147220970</ErrorCode>
    <ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <Message>System.Data.SqlClient.SqlException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #EAF7F7D2</Message>
    <Timestamp>2017-09-30T03:59:56.2170386Z</Timestamp>
    <InnerFault>
      <ErrorCode>-2147220970</ErrorCode>
      <ErrorDetails xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
      <Message>System.ComponentModel.Win32Exception: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #E660CAFB</Message>
      <Timestamp>2017-09-30T03:59:56.2170386Z</Timestamp>
      <InnerFault i:nil="true" />
      <TraceText i:nil="true" />
    </InnerFault>
    <TraceText i:nil="true" />
  </InnerFault>
  <TraceText i:nil="true" />
</OrganizationServiceFault>

Thanks 

*This post is locked for comments

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: SQL time out exceptions seen during the Data import. (CRM 2016 On-Premise)

    As Andrew says, the timeout settings still apply in 2016. Note that you need to recycle the CRM application pool and restart the CRM Async service for any registry changes to take effect.

    You may also have locking issues, especially if you've plugins or workflows running on the records you import. One possible way around this would be to run the imports out of normal hours, and have a script to disable / reenable the plugins or workflows.

    Or, if you're getting to the file size limit, it may be better to use an external tool (e.g. SSIS) to do the import

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: SQL time out exceptions seen during the Data import. (CRM 2016 On-Premise)

    Your guess is wrong. Settings are still there.

    To avoid SQL Timeout - try to increase SQL Timeout as I suggested earlier.

  • Shubh_K Profile Picture
    Shubh_K 80 on at
    RE: SQL time out exceptions seen during the Data import.

    I guess the CRM timeout settings changed in 2016 ?

    What things should be taken care of while importing the data, to avoid SQL timeout condition.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: SQL time out exceptions seen during the Data import.

    Hello,

    You can try to increase SQL Timeout - blogs.msdn.microsoft.com/.../microsoft-dynamics-crm-timeout-settings

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans