Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Slow ExecuteMultiple update

(0) ShareShare
ReportReport
Posted on by 155

I´m trying to update one field on 300,000 contact records in MS CRM. I´m using the standard way to update:

responses = (ExecuteMultipleResponse)orgService.Execute(requests);

However, the problem is that it´s really slow. To update 1000 records it takes approx 3 minutes 20 sec.
And often I get timeout exceptions, which I need to handle in code.

There is no plugins triggering on the field i´m updating. Been trying both on On-premise 2016 and CRM Online.

Is this delay normal? What can I do?

(Retrieving data is much faster. I´m able to fetch approx. 3.5millon records within 1.5 hour).

*This post is locked for comments

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 1,019 Super User 2025 Season 1 on at
    RE: Slow ExecuteMultiple update

    Hi kranis,

    If you post your full code, we can suggest improvements to it.

  • crm development Profile Picture
    crm development 870 on at
    RE: Slow ExecuteMultiple update

    Hi, Give a try with multi-threading

    www.capsor.se/.../multithreading-in-crm

  • Suggested answer
    RE: Slow ExecuteMultiple update

    I'd create a small c# application with the Dynamics 365 libraries and run a parallel update. This is a very old article, but it describes the principles behind such a solution: blogs.msdn.microsoft.com/.../parallelism-using-parallel-for-with-the-crm-sdk

    With this you would be able to try/catch/continue on any eventual exceptions as well.

  • kranis Profile Picture
    kranis 155 on at
    RE: Slow ExecuteMultiple update

    In which way is it similar to multiple threading concept would you say?

  • crm development Profile Picture
    crm development 870 on at
    RE: Slow ExecuteMultiple update

    Hi,

    I used ExecuteMultiple. Never came across to the situation where I need to update huge data like your case. It will be great to see your experience with Web api bulk update. Thinking it should be fine.

    Thanks,

    Anand

  • kranis Profile Picture
    kranis 155 on at
    RE: Slow ExecuteMultiple update

    Hi, Thanks for the reply!. I can try that. What is your experience with Web api bulk update? How long does it take to update for e.g. one batch of 1000 records?

  • Suggested answer
    crm development Profile Picture
    crm development 870 on at
    RE: Slow ExecuteMultiple update

    Hi,

    Would you give a try with batch functionality in the Web API for bulk update?

    Check below reference

    community.dynamics.com/.../web-api-bulk-operations

    Thanks,

    Anand

  • kranis Profile Picture
    kranis 155 on at
    RE: Slow ExecuteMultiple update

    No workflows running when updating the contact. (I´m not creating records, only updating)

  • kranis Profile Picture
    kranis 155 on at
    RE: Slow ExecuteMultiple update

    Thank you for your reply. I turned auditing off. But no difference unfortunately.

  • Suggested answer
    Mahadeo Matre Profile Picture
    Mahadeo Matre 17,021 on at
    RE: Slow ExecuteMultiple update

    is there any mealtime or asynchronous workflows running on contact entity when record is created?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans