web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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 193

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

  • 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
    193 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
    193 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans