Do you ever wonder when usingCrmServiceClient, why there is a setting for extending theMaxConnectionTimeOut? In my current company, I have faced a timeout issue when CRM processExecuteMultipleRequestthat contains 1000 of data. One thing that I know based on the return error, by default, when we are usingCrmServiceClient, the default timeout is set for 2 minutes. And because of this, here is the result of my investigation.
For my investigation, I created a plugin with this below logic (to wait for 3 minutes to trigger Dynamics CRM Plugin timeout) and register it in theMessage: UpdateandStage: PreOperation:
using Microsoft.Xrm.Sdk;
using System;
using System.Threading;
namespace DemoPlugin
{
public class Plugin1 : IPlugin
{
public void Execute(IServiceProvider serviceProvider)
{
Thread.Sleep(TimeSpan.FromMinutes(3));
}
}
}
Then I created a simple exe program that will update the same data for 5 times and using ExecuteMultipleRequest
View original post 855 more words
Discover more from Nishant Rana's Weblog
Subscribe to get the latest posts sent to your email.
