Answers.Body: <p>The problem was caused by the <code>max_input_vars</code> php setting being too low.  The effect of this is that <code>$_POST</code> is truncated and therefore the form was failing the required field validations since the data was not actually reaching the form.</p>
  <p>Raising <code>max_input_vars</code> from 1000 to 2000 in php.ini resolved the problem.</p>
  <p>However, if the profile does not have validation rules the form is processed with the truncated data resulting in data loss (depending on the field type).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-19T12:40:02.823Z
Answers.LastActivityDate: 2021-05-19T12:40:02.823Z
Answers.UserDisplayName: Aidan
Body: <p>Using the 'Update multiple contacts' action and a profile we get failures on large batches. The profile has 13 fields with 6 of them required by the profile.</p>
  <p>If the update is run on one batch of 100 contacts, it fails complaining about multiple fields &quot;... is a required field&quot; despite a value being present. All the failing records are at the end of the batch.</p>
  <p>If the same update is run as 2 batches of 50 contacts, it works as expected.</p>
  
Tags: <contacts><upgrade><batches>
Title: Update multiple contacts failing
ThreadText: # Update multiple contacts failing
  
  (Asked by: username_0 on 2021-05-19)
  
  Using the 'Update multiple contacts' action and a profile we get failures on large batches. The profile has 13 fields with 6 of them required by the profile.
  
  If the update is run on one batch of 100 contacts, it fails complaining about multiple fields "... is a required field" despite a value being present. All the failing records are at the end of the batch.
  
  If the same update is run as 2 batches of 50 contacts, it works as expected.
  
  **Tags:** contacts, upgrade, batches
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-05-19. Score: 2
  
  The problem was caused by the `max_input_vars` php setting being too low. The effect of this is that `$_POST` is truncated and therefore the form was failing the required field validations since the data was not actually reaching the form.
  
  Raising `max_input_vars` from 1000 to 2000 in php.ini resolved the problem.
  
  However, if the profile does not have validation rules the form is processed with the truncated data resulting in data loss (depending on the field type).
  
  
  ---
  
  