locked
Execute Multiple Maximum Batch Size RRS feed

  • Question

  • Hi,

    I need to create 13000 records in crm 2011 but it's giving max batch size allowed error. How and where can i configure maximum batch size for execute multiple request. Below is the error detail. Any help would be appreciated.

    

    Thanks,

    Abhishek


    Abhishek

    Tuesday, March 31, 2015 2:35 AM

Answers

  • Hi,

    this code should help you to update..

    DeploymentServiceClient service = Microsoft.Xrm.Sdk.Deployment.Proxy.ProxyClientHelper.CreateClient(new Uri("http://crmtest/XRMDeployment/2011/Deployment.svc"));
    
                    RetrieveAdvancedSettingsRequest request3 = new RetrieveAdvancedSettingsRequest()
                    {
                        ConfigurationEntityName = "Deployment", ColumnSet = new ColumnSet(false)
                    };
                    RetrieveAdvancedSettingsResponse response3 = (RetrieveAdvancedSettingsResponse)service.Execute(request3);
                    ConfigurationEntity configEntity = response3.Entity;
    
                    ConfigurationEntity entity = new ConfigurationEntity();
                    entity.LogicalName = "Deployment";
                    entity.Attributes = new Microsoft.Xrm.Sdk.DeploymentAttributeCollection();
                    entity.Attributes.Add(new KeyValuePair<string, object>("ExecuteMultipleMaxBatchSize", 50000));
                         
                    UpdateAdvancedSettingsRequest request2 = new UpdateAdvancedSettingsRequest();
                    request2.Entity = entity;
                    service.Execute(request2);

    Thank you,



    Sreeni Pavalla

    Tuesday, March 31, 2015 6:59 AM
  • Hi Abishek,

    Batch size limit for Execute multiple request is 1000. You cannot keep 13000 records. 

    For more information look at this blog. 

    Thank you,


    Sreeni Pavalla

    Tuesday, March 31, 2015 6:37 AM

All replies

  • Hi Abishek,

    Batch size limit for Execute multiple request is 1000. You cannot keep 13000 records. 

    For more information look at this blog. 

    Thank you,


    Sreeni Pavalla

    Tuesday, March 31, 2015 6:37 AM
  • Hi ,

    As per below site we can increase, i wanted to know the steps to configure.

    https://community.dynamics.com/crm/b/thecrmguys/archive/2013/01/09/hands-on-with-dynamics-crm-2011-s-new-executemultiple-request.aspx

    Thanks,

    Abhishek


    Abhishek

    Tuesday, March 31, 2015 6:50 AM
  • Hi,

    this code should help you to update..

    DeploymentServiceClient service = Microsoft.Xrm.Sdk.Deployment.Proxy.ProxyClientHelper.CreateClient(new Uri("http://crmtest/XRMDeployment/2011/Deployment.svc"));
    
                    RetrieveAdvancedSettingsRequest request3 = new RetrieveAdvancedSettingsRequest()
                    {
                        ConfigurationEntityName = "Deployment", ColumnSet = new ColumnSet(false)
                    };
                    RetrieveAdvancedSettingsResponse response3 = (RetrieveAdvancedSettingsResponse)service.Execute(request3);
                    ConfigurationEntity configEntity = response3.Entity;
    
                    ConfigurationEntity entity = new ConfigurationEntity();
                    entity.LogicalName = "Deployment";
                    entity.Attributes = new Microsoft.Xrm.Sdk.DeploymentAttributeCollection();
                    entity.Attributes.Add(new KeyValuePair<string, object>("ExecuteMultipleMaxBatchSize", 50000));
                         
                    UpdateAdvancedSettingsRequest request2 = new UpdateAdvancedSettingsRequest();
                    request2.Entity = entity;
                    service.Execute(request2);

    Thank you,



    Sreeni Pavalla

    Tuesday, March 31, 2015 6:59 AM