Answered by:
Execute Multiple Maximum Batch Size

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
- Proposed as answer by Sreenivasulu Pavalla CRM Tuesday, March 31, 2015 7:00 AM
- Marked as answer by Andrii ButenkoMVP, Moderator Monday, June 19, 2017 6:33 PM
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
- Proposed as answer by Sreenivasulu Pavalla CRM Tuesday, March 31, 2015 6:44 AM
- Marked as answer by Andrii ButenkoMVP, Moderator Monday, June 19, 2017 6:33 PM
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
- Proposed as answer by Sreenivasulu Pavalla CRM Tuesday, March 31, 2015 6:44 AM
- Marked as answer by Andrii ButenkoMVP, Moderator Monday, June 19, 2017 6:33 PM
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
- Proposed as answer by Sreenivasulu Pavalla CRM Tuesday, March 31, 2015 7:00 AM
- Marked as answer by Andrii ButenkoMVP, Moderator Monday, June 19, 2017 6:33 PM
Tuesday, March 31, 2015 6:59 AM