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 :
Customer Service forum

Export 2 million records from dynamics 365 Customer Engagement online daily

(0) ShareShare
ReportReport
Posted on by 5

We have to export around 2 million records from dynamics 365 Customer Engagement online. Also, the fetchXML is a little large.

Using RetrieveMultipleRequest we sometimes receive  "Sql error: SQL timeout expired. CRM ErrorCode: -2147204783 Sql ErrorCode: -2146232060 Sql Number: -2".

Which is the best way to do this?

Do I have to use Data Export Service?

Categories:
I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    FetchXml can be paginated (see example) which will reduce the data retrieved at each call. you can loop through all pages until you are done. 

  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at

    Hi Mariano Ignacio,

    There are a few ways to export the records but I would use SQL Server Integration Services (SSIS). The approach will vary depending on what you plan to do with the exported records.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans