Skip to main content

Notifications

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 187

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
    187 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
    54,077 Moderator 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
    187 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
    54,077 Moderator 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,060 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,858 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans