Answers.Body: <p>The problem is contribution_status_id - it can't set the default value because it isn't able to find the status corresponding to Pending. Did you maybe delete that status in your system?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-06T23:30:49.190Z
Answers.Text: I don' think I removed the status, doesn't mean it not there though. Do you know how can I check? And how I can add it back in?
Answers.UserDisplayName: Ben
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-06T23:39:23.097Z
Answers.Text: When you go to Contributions - New Contribution, is Pending a  choice for the status field on the form?
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-06T23:59:32.677Z
Answers.Text: Yes, Pending is an option
Answers.UserDisplayName: Ben
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-07T00:02:33.377Z
Answers.Text: Hmm, that's confusing then. Maybe somehow the internal machine name field has been changed. If you go to Support - Developer - Api3 and choose entity OptionValue and action get and then for parameters Option Group ID = contribution status and Option Label = Pending, what is the output for the `name` field?
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-07T00:29:33.947Z
Answers.Text: Here is the line: "name": "Pending",
Answers.UserDisplayName: Ben
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-31T22:46:22.700Z
Answers.Text: Did you ever find a solution to this error? I'm hitting it too...
Answers.UserDisplayName: pyfi
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-22T10:57:20.833Z
Answers.Text: Hi pyfi. I didn't find a solution. Did you find a solution?
Answers.UserDisplayName: Ben
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-04T12:13:43.983Z
Answers.LastActivityDate: 2021-06-04T12:13:43.983Z
Answers.UserDisplayName: Demerit
Body: <p>I get an update error when updating - see attached screen capture. <a href="https://i.sstatic.net/CksHX.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/CksHX.png" alt="enter image description here" /></a></p>
  <p>The error happens when upgrading from 5.36 to 5.37 and 5.38 (which is currently the latest). The error occurs when using the browser and drush to update.</p>
  <p>Running Drupal version: 7.81 (currently the latest)</p>
  <p>There are Civi extension updates, I normally update Civi before extensions. Not sure if this is causing an issue.</p>
  <p>I can also upload the drush error log as well if that will help.</p>
  <p>Any help is appreciated.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-09-19T23:13:19.613Z
Comments.Text: Similar problem for me - from 5.36 to 5.37 (starting all the way from 5.22.1)
Comments.UserDisplayName: Rupert Raphael Amodia
Tags: <drupal><upgrade><drupal-7>
Title: Update error - Error: core-issue#2487 Add / alter defaults for civicrm_contribution_recur
ThreadText: # Update error - Error: core-issue#2487 Add / alter defaults for civicrm_contribution_recur
  
  (Asked by: username_0 on 2021-06-04)
  
  I get an update error when updating - see attached screen capture. [![enter image description here](https://i.sstatic.net/CksHX.png)](https://i.sstatic.net/CksHX.png)
  
  The error happens when upgrading from 5.36 to 5.37 and 5.38 (which is currently the latest). The error occurs when using the browser and drush to update.
  
  Running Drupal version: 7.81 (currently the latest)
  
  There are Civi extension updates, I normally update Civi before extensions. Not sure if this is causing an issue.
  
  I can also upload the drush error log as well if that will help.
  
  Any help is appreciated.
  
  **Tags:** drupal, upgrade, drupal-7
  
  > **Comments:**
  > **username_1**: Similar problem for me - from 5.36 to 5.37 (starting all the way from 5.22.1)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2021-06-04. Score: 0
  
  The problem is contribution\_status\_id - it can't set the default value because it isn't able to find the status corresponding to Pending. Did you maybe delete that status in your system?
  
  > **Comments:**
  > **username_0**: I don' think I removed the status, doesn't mean it not there though. Do you know how can I check? And how I can add it back in?  
  > **username_2**: When you go to Contributions - New Contribution, is Pending a  choice for the status field on the form?  
  > **username_0**: Yes, Pending is an option  
  > **username_2**: Hmm, that's confusing then. Maybe somehow the internal machine name field has been changed. If you go to Support - Developer - Api3 and choose entity OptionValue and action get and then for parameters Option Group ID = contribution status and Option Label = Pending, what is the output for the `name` field?  
  > **username_0**: Here is the line: "name": "Pending",  
  > **username_3**: Did you ever find a solution to this error? I'm hitting it too...  
  > **username_0**: Hi username_3. I didn't find a solution. Did you find a solution?  
  
  ---
  
  