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 :
Microsoft Dynamics CRM (Archived)

ExecuteMultipleRequest timing out after 1:59:59.

(0) ShareShare
ReportReport
Posted on by 189

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

I have the same question (0)
  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    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

  • JFulfordMS Profile Picture
    189 on at

    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
    54,086 Moderator on at

    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
    189 on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans