locked
Execute Multiple Timeout The request channel timed out while waiting for a reply after 00:01:59.9346510. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may hav RRS feed

  • Question

  • I am getting the following The request channel timed out while waiting for a reply after 00:01:59.9346510. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout. When I try to call

    How do I increase the timeout value when I initiate the Organization service with the following piece of code. This is for CRM Online 2016

    private IOrganizationService GetOrganizationService()
            {
                    if(_organizationServiceIsReady == true)
                    {
                    return _organizationService;
                    }   
                    var client = new CrmServiceClient(this.CRMConnectionString);
                    
                    if(client.IsReady)
                    {
                      _organizationService = (IOrganizationService)client.OrganizationServiceProxy;
                    _organizationServiceIsReady = true;
                    return _organizationService;
                    }
                    else
                    {
                        throw new Exception("Unable to Connect to CRM");
                    }
            }

    foreach (ExecuteMultipleRequest requestCol in this.RequestCollectionList)
               {
                  
                   if (requestCol.Requests.Count > 0)
                   {
                       requestCol.Settings = new ExecuteMultipleSettings
                       {
                           ContinueOnError = true,
                           ReturnResponses = false
                       };
                       DoWork(_batchSize, "Batch.Client.Implementation.BulkExecute - Begin");
                       service.Execute(requestCol);
                       
                       DoWork(_batchSize, "Batch.Client.Implementation.BulkExecute - End");              
                   }
               }


    • Edited by SPCRM2011 Monday, May 16, 2016 12:22 PM
    Monday, May 16, 2016 12:21 PM