Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

ExecuteMultipleRequest timing out after 1:59:59.

(0) ShareShare
ReportReport
Posted on by 185

Can someone please explain how to avoid an HttpException (read timeout at 1:59:59) while waiting for an ExecuteMultiple request to process? This seems really counter intuitive to have a Batch function be constrained by a timeout.

I'm executing this code using the SDK from a C# Console Application.

// process invoice updates.
foreach (var list in SplitRequests<UpdateRequest>(invoiceUpdates))
{
ExecuteMultipleRequest request = new ExecuteMultipleRequest() { Settings = executionSettings };
request.Requests = new OrganizationRequestCollection();
request.Requests.AddRange(list);
ExecuteMultipleResponse response = (ExecuteMultipleResponse)service.Execute(request);
}

*This post is locked for comments

  • JFulfordMS Profile Picture
    JFulfordMS 185 on at
    RE: ExecuteMultipleRequest timing out after 1:59:59.

    I'm getting an HttpException timeout on the read. The message is coming from the connector, not the CRM. We have two plugins registered on the invoice, one on Create, the other on Update. The update is a Post Operation and shouldn't interfere with the bulk upload.

    I tried reducing the number but continued to get worse and worse performance. It is actually faster to update the records one at a time.

  • Suggested answer
    Guido Preite Profile Picture
    Guido Preite 54,069 Super User 2024 Season 1 on at
    RE: ExecuteMultipleRequest timing out after 1:59:59.

    you should check if the update of the invoice triggers some plugins or workflows that go in timeout.

    or try to reduce the number of requests you are batching in each executemultiplerequest

  • JFulfordMS Profile Picture
    JFulfordMS 185 on at
    RE: ExecuteMultipleRequest timing out after 1:59:59.

    This is being executed outside of the CRM within a console application. To be precise, this would be executed by Windows Task Scheduler.

  • Suggested answer
    Guido Preite Profile Picture
    Guido Preite 54,069 Super User 2024 Season 1 on at
    RE: ExecuteMultipleRequest timing out after 1:59:59.

    where are you having the timeout? I suppose inside a plugin or custom workflow activity

    if yes, that is a limitation of the sandbox, has nothing to do with the executemultiplerequest, and the use of executemultiplerequest is not recommended inside plugins/custom workflow activities

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